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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 years, 3 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
Index: cc/test/layer_tree_host_common_test.cc
diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc
index 3b6b14b5dec2efcd5ea3ebd6e6259d598de4830c..33e0cafc47c1f06520c1cc28e6268d59811dd610 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -6,12 +6,14 @@
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
+#include "cc/test/fake_layer_tree_host.h"
#include "cc/trees/layer_tree_host_common.h"
namespace cc {
LayerTreeHostCommonTestBase::LayerTreeHostCommonTestBase()
- : render_surface_layer_list_count_(0) {
+ : client_(FakeLayerTreeHostClient::DIRECT_3D),
+ render_surface_layer_list_count_(0) {
}
LayerTreeHostCommonTestBase::~LayerTreeHostCommonTestBase() {
@@ -110,4 +112,9 @@ void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
LayerTreeHostCommon::CalculateDrawProperties(&inputs);
}
+scoped_ptr<FakeLayerTreeHost>
+LayerTreeHostCommonTestBase::CreateFakeLayerTreeHost() {
+ return FakeLayerTreeHost::Create(&client_);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698