Chromium Code Reviews| Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
| diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| index 358c045533e74111a3bb3a10c57126db939e78cf..7c72e41e543f04183bf89b5607973d7a9f42074a 100644 |
| --- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
| @@ -113,6 +113,7 @@ |
| #include "platform/fonts/FontCache.h" |
| #include "platform/graphics/Color.h" |
| #include "platform/graphics/CompositorFactory.h" |
| +#include "platform/graphics/CompositorMutatorClient.h" |
| #include "platform/graphics/FirstPaintInvalidationTracking.h" |
| #include "platform/graphics/GraphicsContext.h" |
| #include "platform/graphics/Image.h" |
| @@ -152,6 +153,7 @@ |
| #include "public/web/WebViewClient.h" |
| #include "public/web/WebWindowFeatures.h" |
| #include "web/CompositionUnderlineVectorBuilder.h" |
| +#include "web/CompositorMutatorImpl.h" |
| #include "web/ContextFeaturesClientImpl.h" |
| #include "web/ContextMenuAllowedScope.h" |
| #include "web/DatabaseClientImpl.h" |
| @@ -4545,6 +4547,15 @@ void WebViewImpl::forceNextDrawingBufferCreationToFail() |
| DrawingBuffer::forceNextDrawingBufferCreationToFail(); |
| } |
| +CompositorProxyClient* WebViewImpl::createCompositorProxyClient() |
| +{ |
| + if (!m_mutator.get()) { |
|
jbroman
2016/04/20 19:24:51
nit: "if (!m_mutator) {"
flackr
2016/04/25 14:06:28
Done.
|
| + m_mutator = CompositorMutatorImpl::create(); |
| + m_layerTreeView->setMutatorClient(m_mutator->client()); |
| + } |
| + return m_mutator->createCompositorProxyClient(); |
| +} |
| + |
| void WebViewImpl::updatePageOverlays() |
| { |
| if (m_pageColorOverlay) |