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

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

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + autogen Created 5 years, 1 month 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 void RunPixelTestWithReadbackTarget(PixelTestType type, 73 void RunPixelTestWithReadbackTarget(PixelTestType type,
74 scoped_refptr<Layer> content_root, 74 scoped_refptr<Layer> content_root,
75 Layer* target, 75 Layer* target,
76 base::FilePath file_name); 76 base::FilePath file_name);
77 77
78 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap( 78 scoped_ptr<SkBitmap> CopyTextureMailboxToBitmap(
79 const gfx::Size& size, 79 const gfx::Size& size,
80 const TextureMailbox& texture_mailbox); 80 const TextureMailbox& texture_mailbox);
81 81
82
82 void Finish(); 83 void Finish();
83 84
84 void set_enlarge_texture_amount(const gfx::Vector2d& enlarge_texture_amount) { 85 void set_enlarge_texture_amount(const gfx::Vector2d& enlarge_texture_amount) {
85 enlarge_texture_amount_ = enlarge_texture_amount; 86 enlarge_texture_amount_ = enlarge_texture_amount;
86 } 87 }
87 88
88 // Common CSS colors defined for tests to use. 89 // Common CSS colors defined for tests to use.
89 static const SkColor kCSSOrange = 0xffffa500; 90 static const SkColor kCSSOrange = 0xffffa500;
90 static const SkColor kCSSBrown = 0xffa52a2a; 91 static const SkColor kCSSBrown = 0xffa52a2a;
91 static const SkColor kCSSGreen = 0xff008000; 92 static const SkColor kCSSGreen = 0xff008000;
92 93
93 gfx::DisableNullDrawGLBindings enable_pixel_output_; 94 gfx::DisableNullDrawGLBindings enable_pixel_output_;
94 scoped_ptr<PixelComparator> pixel_comparator_; 95 scoped_ptr<PixelComparator> pixel_comparator_;
95 PixelTestType test_type_; 96 PixelTestType test_type_;
96 scoped_refptr<Layer> content_root_; 97 scoped_refptr<Layer> content_root_;
97 Layer* readback_target_; 98 Layer* readback_target_;
98 base::FilePath ref_file_; 99 base::FilePath ref_file_;
99 scoped_ptr<SkBitmap> result_bitmap_; 100 scoped_ptr<SkBitmap> result_bitmap_;
100 std::vector<scoped_refptr<TextureLayer>> texture_layers_; 101 std::vector<scoped_refptr<TextureLayer>> texture_layers_;
101 int pending_texture_mailbox_callbacks_; 102 int pending_texture_mailbox_callbacks_;
102 gfx::Vector2d enlarge_texture_amount_; 103 gfx::Vector2d enlarge_texture_amount_;
103 }; 104 };
104 105
105 } // namespace cc 106 } // namespace cc
106 107
107 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 108 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698