Index: cc/test/stub_layer_tree_host_client.h |
diff --git a/cc/test/fake_layer_tree_host_client.h b/cc/test/stub_layer_tree_host_client.h |
similarity index 50% |
copy from cc/test/fake_layer_tree_host_client.h |
copy to cc/test/stub_layer_tree_host_client.h |
index d99bdb3739992f3157121c062cdc0902e4808787..ed6bd4b4a0c8664c0199d29a05ff9f395e698e63 100644 |
--- a/cc/test/fake_layer_tree_host_client.h |
+++ b/cc/test/stub_layer_tree_host_client.h |
@@ -1,28 +1,17 @@ |
-// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ |
-#define CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ |
+#ifndef CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ |
+#define CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ |
-#include <memory> |
- |
-#include "cc/input/input_handler.h" |
-#include "cc/test/test_context_provider.h" |
#include "cc/trees/layer_tree_host_client.h" |
-#include "cc/trees/layer_tree_host_single_thread_client.h" |
namespace cc { |
-class OutputSurface; |
-class FakeLayerTreeHostClient : public LayerTreeHostClient, |
- public LayerTreeHostSingleThreadClient { |
+class StubLayerTreeHostClient : public LayerTreeHostClient { |
public: |
- FakeLayerTreeHostClient(); |
- ~FakeLayerTreeHostClient() override; |
- |
- // Caller responsible for unsetting this and maintaining the host's lifetime. |
- void SetLayerTreeHost(LayerTreeHost* host) { host_ = host; } |
+ ~StubLayerTreeHostClient() override; |
// LayerTreeHostClient implementation. |
void WillBeginMainFrame() override {} |
@@ -35,23 +24,16 @@ class FakeLayerTreeHostClient : public LayerTreeHostClient, |
const gfx::Vector2dF& elastic_overscroll_delta, |
float page_scale, |
float top_controls_delta) override {} |
- void RequestNewOutputSurface() override; |
+ void RequestNewOutputSurface() override {} |
void DidInitializeOutputSurface() override {} |
- void DidFailToInitializeOutputSurface() override; |
+ void DidFailToInitializeOutputSurface() override {} |
void WillCommit() override {} |
void DidCommit() override {} |
void DidCommitAndDrawFrame() override {} |
void DidCompleteSwapBuffers() override {} |
void DidCompletePageScaleAnimation() override {} |
- |
- // LayerTreeHostSingleThreadClient implementation. |
- void DidPostSwapBuffers() override {} |
- void DidAbortSwapBuffers() override {} |
- |
- private: |
- LayerTreeHost* host_ = nullptr; |
}; |
} // namespace cc |
-#endif // CC_TEST_FAKE_LAYER_TREE_HOST_CLIENT_H_ |
+#endif // CC_TEST_STUB_LAYER_TREE_HOST_CLIENT_H_ |