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

Unified Diff: cc/trees/layer_tree_host_perftest.cc

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments. Created 4 years, 11 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/trees/layer_tree_host_perftest.cc
diff --git a/cc/trees/layer_tree_host_perftest.cc b/cc/trees/layer_tree_host_perftest.cc
index 9f3f3ac693699e48c17cd177d1b8c15d35843faf..e2b8733140a79f97413443c0beca6223ac3d29ca 100644
--- a/cc/trees/layer_tree_host_perftest.cc
+++ b/cc/trees/layer_tree_host_perftest.cc
@@ -151,13 +151,13 @@ class LayerTreeHostPerfTestJsonReader : public LayerTreeHostPerfTest {
TEST_F(LayerTreeHostPerfTestJsonReader, TenTenSingleThread) {
SetTestName("10_10_single_thread");
ReadTestFile("10_10_layer_tree");
- RunTest(CompositorMode::SingleThreaded, false);
+ RunTest(CompositorMode::SINGLE_THREADED, false);
}
TEST_F(LayerTreeHostPerfTestJsonReader, TenTenThreaded) {
SetTestName("10_10_threaded_impl_side");
ReadTestFile("10_10_layer_tree");
- RunTest(CompositorMode::Threaded, false);
+ RunTest(CompositorMode::THREADED, false);
}
// Simulates a tab switcher scene with two stacks of 10 tabs each.
@@ -166,14 +166,14 @@ TEST_F(LayerTreeHostPerfTestJsonReader,
full_damage_each_frame_ = true;
SetTestName("10_10_single_thread_full_damage_each_frame");
ReadTestFile("10_10_layer_tree");
- RunTest(CompositorMode::SingleThreaded, false);
+ RunTest(CompositorMode::SINGLE_THREADED, false);
}
TEST_F(LayerTreeHostPerfTestJsonReader, TenTenThreaded_FullDamageEachFrame) {
full_damage_each_frame_ = true;
SetTestName("10_10_threaded_impl_side_full_damage_each_frame");
ReadTestFile("10_10_layer_tree");
- RunTest(CompositorMode::Threaded, false);
+ RunTest(CompositorMode::THREADED, false);
}
// Invalidates a leaf layer in the tree on the main thread after every commit.
@@ -207,13 +207,13 @@ class LayerTreeHostPerfTestLeafInvalidates
TEST_F(LayerTreeHostPerfTestLeafInvalidates, TenTenSingleThread) {
SetTestName("10_10_single_thread_leaf_invalidates");
ReadTestFile("10_10_layer_tree");
- RunTest(CompositorMode::SingleThreaded, false);
+ RunTest(CompositorMode::SINGLE_THREADED, false);
}
TEST_F(LayerTreeHostPerfTestLeafInvalidates, TenTenThreaded) {
SetTestName("10_10_threaded_impl_side_leaf_invalidates");
ReadTestFile("10_10_layer_tree");
- RunTest(CompositorMode::Threaded, false);
+ RunTest(CompositorMode::THREADED, false);
}
// Simulates main-thread scrolling on each frame.
@@ -248,7 +248,7 @@ TEST_F(ScrollingLayerTreePerfTest, LongScrollablePageSingleThread) {
// crbug.com/444219 is fixed.
bool old_verify_property_trees = verify_property_trees();
set_verify_property_trees(false);
- RunTest(CompositorMode::SingleThreaded, false);
+ RunTest(CompositorMode::SINGLE_THREADED, false);
set_verify_property_trees(old_verify_property_trees);
}
@@ -259,7 +259,7 @@ TEST_F(ScrollingLayerTreePerfTest, LongScrollablePageThreaded) {
// crbug.com/444219 is fixed.
bool old_verify_property_trees = verify_property_trees();
set_verify_property_trees(false);
- RunTest(CompositorMode::Threaded, false);
+ RunTest(CompositorMode::THREADED, false);
set_verify_property_trees(old_verify_property_trees);
}
@@ -335,7 +335,7 @@ TEST_F(BrowserCompositorInvalidateLayerTreePerfTest, DenseBrowserUIThreaded) {
measure_commit_cost_ = true;
SetTestName("dense_layer_tree");
ReadTestFile("dense_layer_tree");
- RunTest(CompositorMode::Threaded, false);
+ RunTest(CompositorMode::THREADED, false);
}
// Simulates a page with several large, transformed and animated layers.
@@ -344,7 +344,7 @@ TEST_F(LayerTreeHostPerfTestJsonReader, HeavyPageThreaded) {
measure_commit_cost_ = true;
SetTestName("heavy_page");
ReadTestFile("heavy_layer_tree");
- RunTest(CompositorMode::Threaded, false);
+ RunTest(CompositorMode::THREADED, false);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698