| OLD | NEW |
| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 void set_enlarge_texture_amount(const gfx::Vector2d& enlarge_texture_amount) { | 84 void set_enlarge_texture_amount(const gfx::Vector2d& enlarge_texture_amount) { |
| 85 enlarge_texture_amount_ = enlarge_texture_amount; | 85 enlarge_texture_amount_ = enlarge_texture_amount; |
| 86 } | 86 } |
| 87 | 87 |
| 88 // Common CSS colors defined for tests to use. | 88 // Common CSS colors defined for tests to use. |
| 89 static const SkColor kCSSOrange = 0xffffa500; | 89 static const SkColor kCSSOrange = 0xffffa500; |
| 90 static const SkColor kCSSBrown = 0xffa52a2a; | 90 static const SkColor kCSSBrown = 0xffa52a2a; |
| 91 static const SkColor kCSSGreen = 0xff008000; | 91 static const SkColor kCSSGreen = 0xff008000; |
| 92 | 92 |
| 93 gfx::DisableNullDrawGLBindings enable_pixel_output_; | 93 gl::DisableNullDrawGLBindings enable_pixel_output_; |
| 94 std::unique_ptr<PixelComparator> pixel_comparator_; | 94 std::unique_ptr<PixelComparator> pixel_comparator_; |
| 95 PixelTestType test_type_; | 95 PixelTestType test_type_; |
| 96 scoped_refptr<Layer> content_root_; | 96 scoped_refptr<Layer> content_root_; |
| 97 Layer* readback_target_; | 97 Layer* readback_target_; |
| 98 base::FilePath ref_file_; | 98 base::FilePath ref_file_; |
| 99 std::unique_ptr<SkBitmap> result_bitmap_; | 99 std::unique_ptr<SkBitmap> result_bitmap_; |
| 100 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 100 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
| 101 int pending_texture_mailbox_callbacks_; | 101 int pending_texture_mailbox_callbacks_; |
| 102 gfx::Vector2d enlarge_texture_amount_; | 102 gfx::Vector2d enlarge_texture_amount_; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace cc | 105 } // namespace cc |
| 106 | 106 |
| 107 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 107 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
| OLD | NEW |