Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(996)

Unified Diff: cc/test/stub_layer_tree_host_client.h

Issue 2174653002: cc: Break up with FakeLayerTreeHostClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fakeoutputsurface
Patch Set: lthclient-tests: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/stub_layer_tree_host_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/stub_layer_tree_host_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698