Changeset 229629 in webkit
- Timestamp:
- Mar 15, 2018 11:30:19 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r229622 r229629 1 2018-03-15 Brent Fulgham <bfulgham@apple.com> 2 3 REGRESSION(r229484): Plugins often require CGS Connections to draw 4 https://bugs.webkit.org/show_bug.cgi?id=183663 5 <rdar://problem/38439218> 6 7 Reviewed by Per Arne Vollan. 8 9 Flash requires an active CGSConnection to work properly. Since we don't want the WebContent 10 process to have on, create a new plugin process-specific layer host creation method that 11 gives this access. 12 13 * Platform/mac/LayerHostingContext.h: 14 * Platform/mac/LayerHostingContext.mm: 15 (WebKit::LayerHostingContext::createForExternalPluginHostingProcess): Added. 16 * PluginProcess/mac/PluginControllerProxyMac.mm: 17 (WebKit::PluginControllerProxy::updateLayerHostingContext): Use the new creation 18 method. 19 1 20 2018-03-15 Zan Dobersek <zdobersek@igalia.com> 2 21 -
trunk/Source/WebKit/Platform/mac/LayerHostingContext.h
r219050 r229629 47 47 #if HAVE(OUT_OF_PROCESS_LAYER_HOSTING) 48 48 static std::unique_ptr<LayerHostingContext> createForExternalHostingProcess(); 49 #if PLATFORM(MAC) 50 static std::unique_ptr<LayerHostingContext> createForExternalPluginHostingProcess(); 51 #endif 49 52 #endif 50 53 -
trunk/Source/WebKit/Platform/mac/LayerHostingContext.mm
r229484 r229629 73 73 return layerHostingContext; 74 74 } 75 76 #if PLATFORM(MAC) 77 std::unique_ptr<LayerHostingContext> LayerHostingContext::createForExternalPluginHostingProcess() 78 { 79 auto layerHostingContext = std::make_unique<LayerHostingContext>(); 80 layerHostingContext->m_layerHostingMode = LayerHostingMode::OutOfProcess; 81 layerHostingContext->m_context = [CAContext contextWithCGSConnection:CGSMainConnectionID() options:@{ kCAContextCIFilterBehavior : @"ignore" }]; 82 return layerHostingContext; 83 } 75 84 #endif 85 #endif // HAVE(OUT_OF_PROCESS_LAYER_HOSTING) 76 86 77 87 LayerHostingContext::LayerHostingContext() -
trunk/Source/WebKit/PluginProcess/mac/PluginControllerProxyMac.mm
r219050 r229629 131 131 #if HAVE(OUT_OF_PROCESS_LAYER_HOSTING) 132 132 case LayerHostingMode::OutOfProcess: 133 m_layerHostingContext = LayerHostingContext::createForExternal HostingProcess();133 m_layerHostingContext = LayerHostingContext::createForExternalPluginHostingProcess(); 134 134 break; 135 135 #endif
Note: See TracChangeset
for help on using the changeset viewer.