summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_layer_tree_host_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/fake_layer_tree_host_client.h')
-rw-r--r--cc/test/fake_layer_tree_host_client.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/cc/test/fake_layer_tree_host_client.h b/cc/test/fake_layer_tree_host_client.h
index f10ba59..65a40ef 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<cc::ContextProvider> OffscreenContextProviderForMainThread() OVERRIDE;
+ virtual scoped_refptr<cc::ContextProvider> OffscreenContextProviderForCompositorThread() OVERRIDE;
+
private:
bool m_useSoftwareRendering;
bool m_useDelegatingRenderer;
+
+ scoped_refptr<FakeContextProvider> m_mainThreadContexts;
+ scoped_refptr<FakeContextProvider> m_compositorThreadContexts;
};
} // namespace cc