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

Unified Diff: cc/test/layer_test_common.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index a6753ce9f528179e7f340af03182e9ca2924a140..eeeecf2881bdd54446e83bcb308b6253df76f0c3 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -118,8 +118,18 @@ void LayerTestCommon::VerifyQuadsAreOccluded(const QuadList& quads,
LayerTestCommon::LayerImplTest::LayerImplTest()
: LayerImplTest(LayerTreeSettingsForTesting()) {}
+LayerTestCommon::LayerImplTest::LayerImplTest(
+ std::unique_ptr<CompositorFrameSink> compositor_frame_sink)
+ : LayerImplTest(LayerTreeSettingsForTesting(),
+ std::move(compositor_frame_sink)) {}
+
LayerTestCommon::LayerImplTest::LayerImplTest(const LayerTreeSettings& settings)
- : compositor_frame_sink_(FakeCompositorFrameSink::Create3d()),
+ : LayerImplTest(settings, FakeCompositorFrameSink::Create3d()) {}
+
+LayerTestCommon::LayerImplTest::LayerImplTest(
+ const LayerTreeSettings& settings,
+ std::unique_ptr<CompositorFrameSink> compositor_frame_sink)
+ : compositor_frame_sink_(std::move(compositor_frame_sink)),
animation_host_(AnimationHost::CreateForTesting(ThreadInstance::MAIN)),
host_(FakeLayerTreeHost::Create(&client_,
&task_graph_runner_,
« no previous file with comments | « cc/test/layer_test_common.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698