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

Unified Diff: cc/test/layer_tree_pixel_test.cc

Issue 667793004: Support single-threaded impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, add ContextCapabilities Created 6 years, 2 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_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index 370995e33f7e3840bd8af6fef682962411080c2c..ef0ba225ac6ed1be11b82de44eb6295db2150bab 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -198,7 +198,20 @@ void LayerTreePixelTest::RunPixelTest(
content_root_ = content_root;
readback_target_ = NULL;
ref_file_ = file_name;
- RunTest(true, false, impl_side_painting_);
+ bool threaded = true;
+ RunTest(threaded, false, impl_side_painting_);
+}
+
+void LayerTreePixelTest::RunSingleThreadedPixelTest(
+ PixelTestType test_type,
+ scoped_refptr<Layer> content_root,
+ base::FilePath file_name) {
+ test_type_ = test_type;
+ content_root_ = content_root;
+ readback_target_ = NULL;
+ ref_file_ = file_name;
+ bool threaded = false;
+ RunTest(threaded, false, impl_side_painting_);
}
void LayerTreePixelTest::RunPixelTestWithReadbackTarget(

Powered by Google App Engine
This is Rietveld 408576698