RESOLVED FIXED 130427
[iOS][WebKit2] Mark layer contents as being opaque if they are
https://bugs.webkit.org/show_bug.cgi?id=130427
Summary [iOS][WebKit2] Mark layer contents as being opaque if they are
Tim Horton
Reported 2014-03-18 15:08:18 PDT
Attachments
patch (17.33 KB, patch)
2014-03-18 18:12 PDT, Tim Horton
simon.fraser: review+
Tim Horton
Comment 1 2014-03-18 18:12:27 PDT
WebKit Commit Bot
Comment 2 2014-03-18 18:15:08 PDT
Attachment 227141 [details] did not pass style-queue: ERROR: Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h:66: The parameter name "layer" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 3 2014-03-18 18:17:36 PDT
Comment on attachment 227141 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=227141&action=review > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm:793 > + if (const RemoteLayerBackingStore* backingStore = layerProperties.backingStore.get()) we should log something if it goes away too...
Simon Fraser (smfr)
Comment 4 2014-03-18 18:20:42 PDT
Comment on attachment 227141 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=227141&action=review > Source/WebCore/platform/graphics/GraphicsLayerClient.h:91 > + virtual bool willPaintOpaqueAtNonIntegralScale(const GraphicsLayer*) const { return false; } This sounds like it only applies to the next paint. Maybe paintsOpaquelyAtNonIntegralScales? > Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h:84 > + RetainPtr<CGImageRef> image() const; Does this actually need to return a RetainPtr?
Tim Horton
Comment 5 2014-03-18 18:26:58 PDT
(In reply to comment #4) > (From update of attachment 227141 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=227141&action=review > > > Source/WebCore/platform/graphics/GraphicsLayerClient.h:91 > > + virtual bool willPaintOpaqueAtNonIntegralScale(const GraphicsLayer*) const { return false; } > > This sounds like it only applies to the next paint. Maybe paintsOpaquelyAtNonIntegralScales? Sure. > > Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h:84 > > + RetainPtr<CGImageRef> image() const; > > Does this actually need to return a RetainPtr? I think so? It creates a fresh CGImage from the ShareableBitmap. Maybe I should rename it createImageForFrontBuffer() or something.
Tim Horton
Comment 6 2014-03-18 18:52:43 PDT
Note You need to log in before you can comment on or make changes to this bug.