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

Side by Side Diff: cc/test/layer_tree_pixel_test.h

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_PIXEL_TEST_H_
6 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 6 #define CC_TEST_LAYER_TREE_PIXEL_TEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 SkColor color); 52 SkColor color);
53 scoped_refptr<SolidColorLayer> CreateSolidColorLayerWithBorder( 53 scoped_refptr<SolidColorLayer> CreateSolidColorLayerWithBorder(
54 const gfx::Rect& rect, 54 const gfx::Rect& rect,
55 SkColor color, 55 SkColor color,
56 int border_width, 56 int border_width,
57 SkColor border_color); 57 SkColor border_color);
58 scoped_refptr<TextureLayer> CreateTextureLayer(const gfx::Rect& rect, 58 scoped_refptr<TextureLayer> CreateTextureLayer(const gfx::Rect& rect,
59 const SkBitmap& bitmap); 59 const SkBitmap& bitmap);
60 60
61 enum PixelTestType { 61 enum PixelTestType {
62 GL_WITH_DEFAULT, 62 PIXEL_TEST_GL,
63 GL_WITH_BITMAP, 63 PIXEL_TEST_SOFTWARE,
64 SOFTWARE_WITH_DEFAULT,
65 SOFTWARE_WITH_BITMAP
66 }; 64 };
67 65
68 void RunPixelTest(PixelTestType type, 66 void RunPixelTest(PixelTestType type,
69 scoped_refptr<Layer> content_root, 67 scoped_refptr<Layer> content_root,
70 base::FilePath file_name); 68 base::FilePath file_name);
71 69
72 void RunPixelTestWithReadbackTarget(PixelTestType type, 70 void RunPixelTestWithReadbackTarget(PixelTestType type,
73 scoped_refptr<Layer> content_root, 71 scoped_refptr<Layer> content_root,
74 Layer* target, 72 Layer* target,
75 base::FilePath file_name); 73 base::FilePath file_name);
(...skipping 25 matching lines...) Expand all
101 base::FilePath ref_file_; 99 base::FilePath ref_file_;
102 scoped_ptr<SkBitmap> result_bitmap_; 100 scoped_ptr<SkBitmap> result_bitmap_;
103 std::vector<scoped_refptr<TextureLayer>> texture_layers_; 101 std::vector<scoped_refptr<TextureLayer>> texture_layers_;
104 int pending_texture_mailbox_callbacks_; 102 int pending_texture_mailbox_callbacks_;
105 bool impl_side_painting_; 103 bool impl_side_painting_;
106 }; 104 };
107 105
108 } // namespace cc 106 } // namespace cc
109 107
110 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 108 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698