Index: cc/test/fake_layer_tree_host_client.h |
diff --git a/cc/test/fake_layer_tree_host_client.h b/cc/test/fake_layer_tree_host_client.h |
index f10ba5973b6c285150420a269cdab84d05f7f571..494fa73a3d55fea9571a43ea5e8bbb2ee6475709 100644 |
--- a/cc/test/fake_layer_tree_host_client.h |
+++ b/cc/test/fake_layer_tree_host_client.h |
@@ -8,17 +8,15 @@ |
#include "base/memory/scoped_ptr.h" |
#include "cc/input_handler.h" |
#include "cc/layer_tree_host.h" |
+#include "cc/test/fake_context_provider.h" |
#include "cc/test/fake_output_surface.h" |
namespace cc { |
class FakeLayerImplTreeHostClient : public LayerTreeHostClient { |
public: |
- FakeLayerImplTreeHostClient(bool useSoftwareRendering = false, bool useDelegatingRenderer = false) |
- : m_useSoftwareRendering(useSoftwareRendering) |
- , m_useDelegatingRenderer(useDelegatingRenderer) |
- { |
- } |
+ FakeLayerImplTreeHostClient(bool useSoftwareRendering = false, bool useDelegatingRenderer = false); |
+ virtual ~FakeLayerImplTreeHostClient(); |
virtual void willBeginFrame() OVERRIDE { } |
virtual void didBeginFrame() OVERRIDE { } |
@@ -37,9 +35,15 @@ public: |
// Used only in the single-threaded path. |
virtual void scheduleComposite() OVERRIDE { } |
+ virtual scoped_refptr<ui::ContextProvider> OffscreenContextProviderForMainThread() OVERRIDE; |
+ virtual scoped_refptr<ui::ContextProvider> OffscreenContextProviderForCompositorThread() OVERRIDE; |
+ |
private: |
bool m_useSoftwareRendering; |
bool m_useDelegatingRenderer; |
+ |
+ scoped_refptr<FakeContextProvider> m_mainThreadContexts; |
+ scoped_refptr<FakeContextProvider> m_compositorThreadContexts; |
}; |
} // namespace cc |