RESOLVED FIXED 134050
LayerPool’d PlatformCALayerRemote/RemoteLayerBackingStore can have stale context pointers
https://bugs.webkit.org/show_bug.cgi?id=134050
Summary LayerPool’d PlatformCALayerRemote/RemoteLayerBackingStore can have stale cont...
Tim Horton
Reported 2014-06-18 17:00:58 PDT
Leading to horrible things when they are destroyed or displayed (and try to use said stale pointers). <rdar://problem/17315114>
Attachments
patch (20.52 KB, patch)
2014-06-19 15:22 PDT, Tim Horton
simon.fraser: review+
Tim Horton
Comment 1 2014-06-19 15:22:10 PDT
WebKit Commit Bot
Comment 2 2014-06-19 15:24:04 PDT
Attachment 233387 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/ca/PlatformCALayer.h:228: The parameter name "layerType" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/ca/PlatformCALayer.h:228: The parameter name "client" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp:27: Found other header before a header this file implements. Should be: config.h, primary header, blank line, and then alphabetically sorted. [build/include_order] [4] Total errors found: 3 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 3 2014-06-19 15:41:14 PDT
Comment on attachment 233387 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=233387&action=review > Source/WebCore/platform/graphics/ca/PlatformCALayer.h:228 > + PassRefPtr<PlatformCALayer> createCompatibleLayerWithSize(LayerType layerType, PlatformCALayerClient* client, IntSize, UseLayerPool = UseLayerPool::DoNotUse); UseLayerPool::DoNotUse hurts. Why not just have two create methods, one which tries the pool then calls the other?
Tim Horton
Comment 4 2014-06-20 00:34:43 PDT
Note You need to log in before you can comment on or make changes to this bug.