| Index: webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| index d2c8da314a7c3855dbc2332b33a98b1602d50b44..015b5499a5043d31e7c6588d38fd58d1648c5408 100644
|
| --- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| +++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
|
| @@ -17,6 +17,7 @@
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewClient.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebRenderingStats.h"
|
| +#include "third_party/WebKit/Source/Platform/chromium/public/WebSharedGraphicsContext3D.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
|
| #include "web_layer_impl.h"
|
| #include "web_to_ccinput_handler_adapter.h"
|
| @@ -265,6 +266,32 @@ void WebLayerTreeViewImpl::didRecreateOutputSurface(bool success)
|
| m_client->didRecreateOutputSurface(success);
|
| }
|
|
|
| +WebKit::WebGraphicsContext3D* WebLayerTreeViewImpl::OffscreenContext3dForMainThread()
|
| +{
|
| + return WebSharedGraphicsContext3D::mainThreadContext();
|
| +}
|
| +
|
| +WebKit::WebGraphicsContext3D* WebLayerTreeViewImpl::OffscreenContext3dForCompositorThread()
|
| +{
|
| + if (!WebSharedGraphicsContext3D::haveCompositorThreadContext() && !WebSharedGraphicsContext3D::createCompositorThreadContext())
|
| + return NULL;
|
| + return WebSharedGraphicsContext3D::compositorThreadContext();
|
| +}
|
| +
|
| +GrContext* WebLayerTreeViewImpl::OffscreenGrContextForMainThread()
|
| +{
|
| + return WebSharedGraphicsContext3D::mainThreadGrContext();
|
| +}
|
| +
|
| +GrContext* WebLayerTreeViewImpl::OffscreenGrContextForCompositorThread()
|
| +{
|
| + return WebSharedGraphicsContext3D::compositorThreadGrContext();
|
| +}
|
| +
|
| +void WebLayerTreeViewImpl::DestroyOffscreenContext3dForCompositorThread() {
|
| + WebSharedGraphicsContext3D::createCompositorThreadContext();
|
| +}
|
| +
|
| scoped_ptr<InputHandler> WebLayerTreeViewImpl::createInputHandler()
|
| {
|
| scoped_ptr<InputHandler> ret;
|
|
|