Closed
Bug 1274720
Opened 8 years ago
Closed 8 years ago
Don't use DrawTargetCG for drawing popups (context menus, panels)
Categories
(Core :: Widget: Cocoa, defect, P1)
Core
Widget: Cocoa
Tracking
()
RESOLVED
FIXED
mozilla49
Tracking | Status | |
---|---|---|
firefox49 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: tpi:+)
Attachments
(1 file)
Instead, draw into a Skia DrawTarget, rewrap the bits in a CGImageRef, and draw that to the window.
Assignee | ||
Comment 1•8 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/54372/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/54372/
Attachment #8755057 -
Flags: review?(jmuizelaar)
Comment 2•8 years ago
|
||
Comment on attachment 8755057 [details] MozReview Request: Bug 1274720 - Don't use DrawTargetCG for drawing popups. r?jrmuizel https://reviewboard.mozilla.org/r/54372/#review52554 ::: widget/cocoa/nsChildView.h:688 (Diff revision 1) > RefPtr<mozilla::SwipeTracker> mSwipeTracker; > mozilla::UniquePtr<mozilla::SwipeEventQueue> mSwipeEventQueue; > > + // Only used for drawRect-based painting in popups. > + mozilla::UniquePtr<unsigned char[]> mBackingSurfaceData; > + mozilla::gfx::IntSize mBackingSurfaceSize; Can this just be a DrawTarget instead of tracking this separately? We can just call LockRect on the DrawTarget.
Attachment #8755057 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 3•8 years ago
|
||
Comment on attachment 8755057 [details] MozReview Request: Bug 1274720 - Don't use DrawTargetCG for drawing popups. r?jrmuizel Review request updated; see interdiff: https://reviewboard.mozilla.org/r/54372/diff/1-2/
Attachment #8755057 -
Flags: review?(jmuizelaar)
Comment 4•8 years ago
|
||
Comment on attachment 8755057 [details] MozReview Request: Bug 1274720 - Don't use DrawTargetCG for drawing popups. r?jrmuizel https://reviewboard.mozilla.org/r/54372/#review53456
Attachment #8755057 -
Flags: review?(jmuizelaar) → review+
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/061b48fc0614 Don't use DrawTargetCG for drawing popups. r=jrmuizel
Updated•8 years ago
|
Priority: -- → P1
Whiteboard: tpi:+
Comment 6•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/061b48fc0614
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Comment 7•8 years ago
|
||
FWIW, this broke drawing pop-ups if you were using the cg-only backend, ie: "gfx.content.azure.backends=cg" (I had it set when testing memory usage switching over to skia, forget to reset it). I wonder if we should just get rid of that pref.
You need to log in
before you can comment on or make changes to this bug.
Description
•