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

Unified Diff: cc/test/layer_tree_pixel_test.h

Issue 17335011: cc: Allow output readback/copy requests to specify a sub-rect to copy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copy-subrect: 3 patches in one Created 7 years, 6 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/output/software_renderer.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.h
diff --git a/cc/test/layer_tree_pixel_test.h b/cc/test/layer_tree_pixel_test.h
index b485237f859de469d1bc630472376423cae0412c..72c14d5369ad37cb597daed86d2ed5d726306b7d 100644
--- a/cc/test/layer_tree_pixel_test.h
+++ b/cc/test/layer_tree_pixel_test.h
@@ -47,10 +47,19 @@ class LayerTreePixelTest : public LayerTreeTest {
int border_width,
SkColor border_color);
- void RunPixelTest(scoped_refptr<Layer> content_root,
+ enum PixelTestType {
+ GL_WITH_DEFAULT,
+ GL_WITH_BITMAP,
+ SOFTWARE_WITH_DEFAULT,
+ SOFTWARE_WITH_BITMAP
+ };
+
+ void RunPixelTest(PixelTestType type,
+ scoped_refptr<Layer> content_root,
base::FilePath file_name);
- void RunPixelTestWithReadbackTarget(scoped_refptr<Layer> content_root,
+ void RunPixelTestWithReadbackTarget(PixelTestType type,
+ scoped_refptr<Layer> content_root,
Layer* target,
base::FilePath file_name);
@@ -68,7 +77,7 @@ class LayerTreePixelTest : public LayerTreeTest {
scoped_ptr<PixelComparator> pixel_comparator_;
protected:
- bool use_gl_;
+ PixelTestType test_type_;
scoped_refptr<Layer> content_root_;
Layer* readback_target_;
base::FilePath ref_file_;
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698