WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
<
rdar://problem/15540434
>
Attachments
patch
(17.33 KB, patch)
2014-03-18 18:12 PDT
,
Tim Horton
simon.fraser
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2014-03-18 18:12:27 PDT
Created
attachment 227141
[details]
patch
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
http://trac.webkit.org/changeset/165863
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug