| Index: cc/layer_tree_host_client.h
|
| diff --git a/cc/layer_tree_host_client.h b/cc/layer_tree_host_client.h
|
| index 25d93aef468f9166277809bcead82eaa383b4daa..f2b9a144ffa316d73426f76f22de46dddd2c5620 100644
|
| --- a/cc/layer_tree_host_client.h
|
| +++ b/cc/layer_tree_host_client.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef CC_LAYER_TREE_HOST_CLIENT_H_
|
| #define CC_LAYER_TREE_HOST_CLIENT_H_
|
|
|
| +#include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
|
|
| namespace gfx {
|
| @@ -12,6 +13,7 @@ class Vector2d;
|
| }
|
|
|
| namespace cc {
|
| +class ContextProvider;
|
| class InputHandler;
|
| class OutputSurface;
|
|
|
| @@ -34,6 +36,13 @@ public:
|
| // Used only in the single-threaded path.
|
| virtual void scheduleComposite() = 0;
|
|
|
| + // These must always return a valid ContextProvider. But the provider does not need to be capable of creating contexts.
|
| + virtual scoped_refptr<cc::ContextProvider> OffscreenContextProviderForMainThread() = 0;
|
| + virtual scoped_refptr<cc::ContextProvider> OffscreenContextProviderForCompositorThread() = 0;
|
| +
|
| + // This hook is for testing.
|
| + virtual void willRetryRecreateOutputSurface() {}
|
| +
|
| protected:
|
| virtual ~LayerTreeHostClient() { }
|
| };
|
|
|