Seeing crashes on apple.com when using high-performance WebGL.
rdar://63839405
Created attachment 401399 [details] Patch Note: This patch is for the safari-609-branch, so won't apply cleanly here.
Comment on attachment 401399 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401399&action=review > Source/WebCore/platform/graphics/mac/SwitchingGPUClient.h:35 > + static bool hasSingleton() { return !!m_singleton; } The alternative is "singletonIfExists()" or whatever. I think we have a pattern for this.
Comment on attachment 401399 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401399&action=review >> Source/WebCore/platform/graphics/mac/SwitchingGPUClient.h:35 >> + static bool hasSingleton() { return !!m_singleton; } > > The alternative is "singletonIfExists()" or whatever. I think we have a pattern for this. I'll do that on trunk. Thanks.
Committed r262783: <https://trac.webkit.org/changeset/262783>
Committed r262811: <https://trac.webkit.org/changeset/262811>