Closed
Bug 896752
Opened 11 years ago
Closed 11 years ago
Windows support for the basic compositor
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: dvander, Assigned: dvander)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
bas.schouten
:
review+
|
Details | Diff | Splinter Review |
It basically seems to work. Aero Glass is broken if I force LAYERS_BASIC but the content area draws fine.
Attachment #779455 -
Flags: review?(bas)
Assignee | ||
Comment 1•11 years ago
|
||
Comment on attachment 779455 [details] [diff] [review]
WindowsBasicCompositor.patch
Clearing review, talked with matt woodrow and can probably get glass working
Attachment #779455 -
Flags: review?(bas)
Updated•11 years ago
|
Component: Graphics → Graphics: Layers
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 779455 [details] [diff] [review]
WindowsBasicCompositor.patch
I didn't have time to figure this out on my own - at the moment I'll take what we've got and not worry about glass looking bad.
Attachment #779455 -
Flags: review?(bas)
Comment 3•11 years ago
|
||
Exactly how is glass broken? And what did you think the reason was when discussing with Matt? (In case I or someone else gets some time to look at this).
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Nick Cameron [:nrc] from comment #3)
> Exactly how is glass broken? And what did you think the reason was when
> discussing with Matt? (In case I or someone else gets some time to look at
> this).
It looks like glass doesn't render at all. It's just blank/white and iirc the control boxes didn't render either. Originally Matt thought the reason might have to do with not painting the same exact way as OnPaint (i.e., this patch ignores translucency), but after some playing around, it seemed translucency was different from the actual Aero Glass code.
Comment 5•11 years ago
|
||
When do we use the BasicCompositor on windows at -this- point?
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Bas Schouten (:bas.schouten) from comment #5)
> When do we use the BasicCompositor on windows at -this- point?
With Electrolysis, when GPU acceleration doesn't work (unless it's guaranteed to work everywhere?)
Comment 7•11 years ago
|
||
Comment on attachment 779455 [details] [diff] [review]
WindowsBasicCompositor.patch
Review of attachment 779455 [details] [diff] [review]:
-----------------------------------------------------------------
::: widget/windows/nsWindow.cpp
@@ +3535,5 @@
> +
> + MOZ_ASSERT(!mCompositeDC);
> + mCompositeDC = dc;
> +
> + return gfxPlatform::GetPlatform()->CreateDrawTargetForSurface(surf, size);
This doesn't do what you want it to do. This isn't guaranteed to be wrapping your DrawTarget (although it fill in this case), you should use the method on the Moz2D Factory.
Assignee | ||
Comment 8•11 years ago
|
||
Uses 2d factory
Attachment #779455 -
Attachment is obsolete: true
Attachment #779455 -
Flags: review?(bas)
Attachment #794541 -
Flags: review?(bas)
Updated•11 years ago
|
Attachment #794541 -
Flags: review?(bas) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Comment 11•11 years ago
|
||
(In reply to David Anderson [:dvander] from comment #0)
> Aero Glass is broken if I force LAYERS_BASIC but
> the content area draws fine.
See bug 913329 for a fix.
You need to log in
before you can comment on or make changes to this bug.
Description
•