RESOLVED FIXED112989
[wk2] Page Overlays: Don't create backing store until the client asks us to paint
https://bugs.webkit.org/show_bug.cgi?id=112989
Summary [wk2] Page Overlays: Don't create backing store until the client asks us to p...
Tim Horton
Reported 2013-03-21 17:48:17 PDT
There's no reason to create backing store for a page overlay if the client hasn't painted. There are cases where a client will install a page overlay solely in order to get its mouse-tracking functionality, or who will paint much later - there's no reason to be hanging on to (and wasting time compositing) a layer or tiles for the entire size of the view if they're just transparent. <rdar://problem/13355759>
Attachments
patch (5.37 KB, patch)
2013-03-21 18:32 PDT, Tim Horton
andersca: review+
Tim Horton
Comment 1 2013-03-21 18:32:24 PDT
Tim Horton
Comment 2 2013-03-21 18:32:24 PDT
Created attachment 194412
Anders Carlsson
Comment 3 2013-03-21 18:35:40 PDT
Comment on attachment 194411 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=194411&action=review > Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:419 > for (PageOverlayLayerMap::iterator it = m_pageOverlayLayers.begin(); it != end; ++it) > - it->value->setSize(viewSize); > + if (it->value->drawsContent()) > + it->value->setSize(viewSize); Please add braces around the for loop and put it->value in its own variable.
Tim Horton
Comment 4 2013-03-21 18:41:57 PDT
Note You need to log in before you can comment on or make changes to this bug.