| Index: cc/test/layer_tree_test_common.h
|
| diff --git a/cc/test/layer_tree_test_common.h b/cc/test/layer_tree_test_common.h
|
| index 682edecc69923c2873e5467e3718a376b8f51406..b83379a3ca23e87724b03537bc0e3ec2b5e8a579 100644
|
| --- a/cc/test/layer_tree_test_common.h
|
| +++ b/cc/test/layer_tree_test_common.h
|
| @@ -9,10 +9,15 @@
|
| #include "base/threading/thread.h"
|
| #include "cc/layer_tree_host.h"
|
| #include "cc/layer_tree_host_impl.h"
|
| +#include "cc/test/fake_layer_tree_host_client.h"
|
| #include "cc/thread.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimationDelegate.h"
|
|
|
| +namespace Webkit {
|
| +class WebGraphicsContext3D;
|
| +}
|
| +
|
| namespace cc {
|
| class LayerImpl;
|
| class LayerTreeHost;
|
| @@ -22,6 +27,9 @@ class LayerTreeHostImpl;
|
| // Used by test stubs to notify the test when something interesting happens.
|
| class TestHooks : public WebKit::WebAnimationDelegate {
|
| public:
|
| + TestHooks();
|
| + virtual ~TestHooks();
|
| +
|
| virtual void beginCommitOnThread(LayerTreeHostImpl*) { }
|
| virtual void commitCompleteOnThread(LayerTreeHostImpl*) { }
|
| virtual bool prepareToDrawOnThread(
|
| @@ -33,6 +41,7 @@ public:
|
| virtual void animate(base::TimeTicks monotonicTime) { }
|
| virtual void layout() { }
|
| virtual void didRecreateOutputSurface(bool succeeded) { }
|
| + virtual void willRetryRecreateOutputSurface() { }
|
| virtual void didAddAnimation() { }
|
| virtual void didCommit() { }
|
| virtual void didCommitAndDrawFrame() { }
|
| @@ -45,6 +54,13 @@ public:
|
| virtual void notifyAnimationFinished(double time) OVERRIDE { }
|
|
|
| virtual scoped_ptr<OutputSurface> createOutputSurface();
|
| + virtual WebKit::WebGraphicsContext3D* offscreenContext3dForMainThread();
|
| + virtual WebKit::WebGraphicsContext3D* offscreenContext3dForCompositorThread();
|
| + virtual GrContext* offscreenGrContextForMainThread();
|
| + virtual GrContext* offscreenGrContextForCompositorThread();
|
| +
|
| +private:
|
| + FakeLayerImplTreeHostClient m_fakeClient;
|
| };
|
|
|
| class TimeoutTask;
|
|
|