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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 scoped_refptr<ContextProvider> compositor_context_provider) override; | 43 scoped_refptr<ContextProvider> compositor_context_provider) override; |
44 | 44 |
45 virtual std::unique_ptr<CopyOutputRequest> CreateCopyOutputRequest(); | 45 virtual std::unique_ptr<CopyOutputRequest> CreateCopyOutputRequest(); |
46 | 46 |
47 void ReadbackResult(std::unique_ptr<CopyOutputResult> result); | 47 void ReadbackResult(std::unique_ptr<CopyOutputResult> result); |
48 | 48 |
49 void BeginTest() override; | 49 void BeginTest() override; |
50 void SetupTree() override; | 50 void SetupTree() override; |
51 void AfterTest() override; | 51 void AfterTest() override; |
52 void EndTest() override; | 52 void EndTest() override; |
| 53 void InitializeSettings(LayerTreeSettings* settings) override; |
53 | 54 |
54 void TryEndTest(); | 55 void TryEndTest(); |
55 | 56 |
56 scoped_refptr<SolidColorLayer> CreateSolidColorLayer(const gfx::Rect& rect, | 57 scoped_refptr<SolidColorLayer> CreateSolidColorLayer(const gfx::Rect& rect, |
57 SkColor color); | 58 SkColor color); |
58 scoped_refptr<SolidColorLayer> CreateSolidColorLayerWithBorder( | 59 scoped_refptr<SolidColorLayer> CreateSolidColorLayerWithBorder( |
59 const gfx::Rect& rect, | 60 const gfx::Rect& rect, |
60 SkColor color, | 61 SkColor color, |
61 int border_width, | 62 int border_width, |
62 SkColor border_color); | 63 SkColor border_color); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 base::FilePath ref_file_; | 101 base::FilePath ref_file_; |
101 std::unique_ptr<SkBitmap> result_bitmap_; | 102 std::unique_ptr<SkBitmap> result_bitmap_; |
102 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 103 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
103 int pending_texture_mailbox_callbacks_; | 104 int pending_texture_mailbox_callbacks_; |
104 gfx::Size enlarge_texture_amount_; | 105 gfx::Size enlarge_texture_amount_; |
105 }; | 106 }; |
106 | 107 |
107 } // namespace cc | 108 } // namespace cc |
108 | 109 |
109 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 110 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
OLD | NEW |