Closed
Bug 758048
Opened 12 years ago
Closed 12 years ago
Use accelerated layers for <panels>
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: Dolske, Assigned: nical)
References
Details
Attachments
(1 file, 1 obsolete file)
6.67 KB,
patch
|
bbondy
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #751370 +++ Bug 751370 was filed to "not use accelerated layers for small popups windows on Linux". The patch disables layers for <panel> too, though, which can contain arbitrarily complex content. We don't do that in Firefox (yet?), but I suppose some addon might use a <panel> for something that would benefit from this. We should probably just exempt <panel> from the bug 751370 fix. (Or possibly make it an optin/optout thing? Not sure that complexity is worth it.)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → nsilva
Assignee | ||
Comment 1•12 years ago
|
||
This small patch does two things: - it moves the PopupType() getter (and the mPopupType member) from windows's nsWindow class to the cross platform base class (nsBaseWidget), which makes more sense to me since the attribute is as relevent on linux or mac as it is on windows. - it uses the popup type when choosing whether or not we disable acceleration (allowing xul panels to be accelerated).
Attachment #626672 -
Flags: review?(dolske)
Assignee | ||
Comment 2•12 years ago
|
||
I just pushed the patch to try servers (I'd be surprised that it breaks something though).
Assignee | ||
Comment 3•12 years ago
|
||
try results look good.
Reporter | ||
Comment 4•12 years ago
|
||
Comment on attachment 626672 [details] [diff] [review] Allows acceleration of xul panels (I can't review this, bouncing over.)
Attachment #626672 -
Flags: review?(dolske) → review?(bgirard)
Comment 5•12 years ago
|
||
Comment on attachment 626672 [details] [diff] [review] Allows acceleration of xul panels This is touching widget code, none of which is cocoa. Joe suggested bbondy to review this.
Attachment #626672 -
Flags: review?(bgirard) → review?(netzen)
Comment 6•12 years ago
|
||
Comment on attachment 626672 [details] [diff] [review] Allows acceleration of xul panels Review of attachment 626672 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks!
Attachment #626672 -
Flags: review?(netzen) → review+
Comment 7•12 years ago
|
||
I had a nit in another open window:
> bool isSmallPopup = ((mWindowType == eWindowType_popup)
> && (mPopupType != ePopupTypePanel));
nit: Please put the && on the previous line and left-align to the right hand side of the equal sign.
Assignee | ||
Comment 8•12 years ago
|
||
> > bool isSmallPopup = ((mWindowType == eWindowType_popup) > > && (mPopupType != ePopupTypePanel)); > > nit: Please put the && on the previous line and left-align to the right hand > side of the equal sign. Fixed :)
Attachment #626672 -
Attachment is obsolete: true
Attachment #628808 -
Flags: review?(netzen)
Updated•12 years ago
|
Attachment #628808 -
Flags: review?(netzen) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #628808 -
Flags: checkin?
Comment 9•12 years ago
|
||
Comment on attachment 628808 [details] [diff] [review] Allows acceleration of xul panels. Just use checkin-needed.
Attachment #628808 -
Flags: checkin?
Updated•12 years ago
|
Keywords: checkin-needed
Comment 11•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e5fb5ad11849
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•