RESOLVED FIXED 172485
Snapshotting via -renderInContext: should do synchronous image decodes
https://bugs.webkit.org/show_bug.cgi?id=172485
Summary Snapshotting via -renderInContext: should do synchronous image decodes
Simon Fraser (smfr)
Reported 2017-05-22 19:45:21 PDT
Snapshotting via -renderInContext: should do synchronous image decodes
Attachments
Patch (82.33 KB, patch)
2017-05-22 20:05 PDT, Simon Fraser (smfr)
no flags
Patch (83.87 KB, patch)
2017-05-22 23:31 PDT, Simon Fraser (smfr)
no flags
Patch (86.52 KB, patch)
2017-05-23 08:18 PDT, Simon Fraser (smfr)
no flags
Patch (86.52 KB, patch)
2017-05-23 11:27 PDT, Simon Fraser (smfr)
no flags
Patch (86.53 KB, patch)
2017-05-23 11:40 PDT, Simon Fraser (smfr)
thorton: review+
Simon Fraser (smfr)
Comment 1 2017-05-22 20:05:55 PDT
Simon Fraser (smfr)
Comment 2 2017-05-22 20:06:19 PDT
Build Bot
Comment 3 2017-05-22 20:08:51 PDT
Attachment 310974 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/LegacyTileCache.mm:513: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit/mac/WebView/WebFrame.mm:639: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 2 in 51 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 4 2017-05-22 23:31:30 PDT
Build Bot
Comment 5 2017-05-22 23:33:23 PDT
Attachment 310983 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/LegacyTileCache.mm:513: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit/mac/WebView/WebFrame.mm:639: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/mac/WebLayer.mm:53: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/mac/WebLayer.mm:74: Should not have spaces around = in property synthesis. [whitespace/property] [4] ERROR: Source/WebCore/platform/ios/LegacyTileLayer.mm:79: Should not have spaces around = in property synthesis. [whitespace/property] [4] Total errors found: 5 in 53 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 6 2017-05-22 23:36:05 PDT
Comment on attachment 310983 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=310983&action=review > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:1566 > -void GraphicsLayerCA::platformCALayerPaintContents(PlatformCALayer*, GraphicsContext& context, const FloatRect& clip) > +void GraphicsLayerCA::platformCALayerPaintContents(PlatformCALayer*, GraphicsContext& context, const FloatRect& clip, GraphicsLayerPaintFlags flags) Hmm, why is this not just a bit on GraphicsContext? > Source/WebCore/platform/graphics/mac/WebLayer.mm:55 > +@interface WebSimpleLayer () { > + BOOL _isRenderingInContext; > +} Don't think you can do this in 32 bit (you'll have to put it in the real interface).
Simon Fraser (smfr)
Comment 7 2017-05-23 07:56:46 PDT
(In reply to Tim Horton from comment #6) > Comment on attachment 310983 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=310983&action=review > > > Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:1566 > > -void GraphicsLayerCA::platformCALayerPaintContents(PlatformCALayer*, GraphicsContext& context, const FloatRect& clip) > > +void GraphicsLayerCA::platformCALayerPaintContents(PlatformCALayer*, GraphicsContext& context, const FloatRect& clip, GraphicsLayerPaintFlags flags) > > Hmm, why is this not just a bit on GraphicsContext? Because with filters etc you can use several different GraphicsContexts, and you'd have to propagate the bit between them. Also I think this concept is slightly higher-level than GraphicsContext.
Simon Fraser (smfr)
Comment 8 2017-05-23 08:18:23 PDT
Build Bot
Comment 9 2017-05-23 08:20:22 PDT
Attachment 311012 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/LegacyTileCache.mm:513: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit/mac/WebView/WebFrame.mm:639: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/mac/WebLayer.mm:68: Should not have spaces around = in property synthesis. [whitespace/property] [4] ERROR: Source/WebCore/platform/ios/LegacyTileLayer.mm:75: Should not have spaces around = in property synthesis. [whitespace/property] [4] Total errors found: 4 in 57 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 10 2017-05-23 11:27:42 PDT
Build Bot
Comment 11 2017-05-23 11:30:40 PDT
Attachment 311031 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/LegacyTileCache.mm:513: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit/mac/WebView/WebFrame.mm:639: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/mac/WebLayer.mm:68: Should not have spaces around = in property synthesis. [whitespace/property] [4] ERROR: Source/WebCore/platform/ios/LegacyTileLayer.mm:75: Should not have spaces around = in property synthesis. [whitespace/property] [4] Total errors found: 4 in 57 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 12 2017-05-23 11:40:01 PDT
Build Bot
Comment 13 2017-05-23 11:41:55 PDT
Attachment 311032 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/LegacyTileCache.mm:513: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebKit/mac/WebView/WebFrame.mm:639: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/mac/WebLayer.mm:68: Should not have spaces around = in property synthesis. [whitespace/property] [4] ERROR: Source/WebCore/platform/ios/LegacyTileLayer.mm:75: Should not have spaces around = in property synthesis. [whitespace/property] [4] Total errors found: 4 in 57 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 14 2017-05-23 12:58:28 PDT
Comment on attachment 311032 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=311032&action=review > Source/WebCore/platform/graphics/mac/WebLayer.h:33 > + BOOL m_isRenderingInContext; Shouldn't have an m prefix. > Source/WebCore/platform/graphics/mac/WebLayer.h:35 > +@property (nonatomic) BOOL _isRenderingInContext; Why is this readwrite? Why does this have a leading underscore? This is an internal class. Should check with the SPI guidelines but I don't think the _ is required. > Source/WebCore/platform/ios/wak/WAKWindow.h:136 > +- (void)setIsInSnapshottingPaint:(BOOL)isInSnapshottingPaint; > +- (BOOL)isInSnapshottingPaint; Why is this not a property :P > Source/WebKit/mac/WebView/WebViewPrivate.h:-771 > -- (void)_setIncludesFlattenedCompositingLayersWhenDrawingToBitmap:(BOOL)flag; > -- (BOOL)_includesFlattenedCompositingLayersWhenDrawingToBitmap; Are you sure it's OK to remove these?
Simon Fraser (smfr)
Comment 15 2017-05-23 13:44:34 PDT
Note You need to log in before you can comment on or make changes to this bug.