| Index: cc/layer_tree_host_client.h
|
| diff --git a/cc/layer_tree_host_client.h b/cc/layer_tree_host_client.h
|
| index 6657f59a8f268e8e7e4004810d31d3a327f28e41..2d9a97cb8e2a093a07b24fd49f3b85085bbf7695 100644
|
| --- a/cc/layer_tree_host_client.h
|
| +++ b/cc/layer_tree_host_client.h
|
| @@ -5,12 +5,20 @@
|
| #ifndef CC_LAYER_TREE_HOST_CLIENT_H_
|
| #define CC_LAYER_TREE_HOST_CLIENT_H_
|
|
|
| +#include <utility>
|
| +
|
| #include "base/memory/scoped_ptr.h"
|
|
|
| +class GrContext;
|
| +
|
| namespace gfx {
|
| class Vector2d;
|
| }
|
|
|
| +namespace WebKit {
|
| +class WebGraphicsContext3D;
|
| +}
|
| +
|
| namespace cc {
|
| class FontAtlas;
|
| class InputHandler;
|
| @@ -26,6 +34,18 @@ public:
|
| virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) = 0;
|
| virtual scoped_ptr<OutputSurface> createOutputSurface() = 0;
|
| virtual void didRecreateOutputSurface(bool success) = 0;
|
| + // This method should create a context if needed, but only one context should
|
| + // ever be created by the client to return from this method.
|
| + virtual WebKit::WebGraphicsContext3D* offscreenContext3dForMainThread() = 0;
|
| + // This method should create a context if needed, but only one context should
|
| + // ever be created by the client to return from this method.
|
| + virtual WebKit::WebGraphicsContext3D* offscreenContext3dForCompositorThread() = 0;
|
| + // This method should create a context if needed, but only one context should
|
| + // ever be created by the client to return from this method.
|
| + virtual GrContext* offscreenGrContextForMainThread() = 0;
|
| + // This method should create a context if needed, but only one context should
|
| + // ever be created by the client to return from this method.
|
| + virtual GrContext* offscreenGrContextForCompositorThread() = 0;
|
| virtual scoped_ptr<InputHandler> createInputHandler() = 0;
|
| virtual void willCommit() = 0;
|
| virtual void didCommit() = 0;
|
| @@ -38,6 +58,9 @@ public:
|
| // Creates a font atlas to use for debug visualizations.
|
| virtual scoped_ptr<FontAtlas> createFontAtlas() = 0;
|
|
|
| + // This hook is for testing.
|
| + virtual void willRetryRecreateOutputSurface() {}
|
| +
|
| protected:
|
| virtual ~LayerTreeHostClient() { }
|
| };
|
|
|