Closed Bug 758048 Opened 12 years ago Closed 12 years ago

Use accelerated layers for <panels>

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: Dolske, Assigned: nical)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ 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: nobody → nsilva
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)
I just pushed the patch to try servers (I'd be surprised that it breaks something though).
try results look good.
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 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 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+
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.
> > 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)
Attachment #628808 - Flags: review?(netzen) → review+
Attachment #628808 - Flags: checkin?
Comment on attachment 628808 [details] [diff] [review]
Allows acceleration of xul panels.

Just use checkin-needed.
Attachment #628808 - Flags: checkin?
https://hg.mozilla.org/integration/mozilla-inbound/rev/e5fb5ad11849
Flags: in-testsuite-
Keywords: checkin-needed
Target Milestone: --- → mozilla16
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.

Attachment

General

Created:
Updated:
Size: