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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 enum PixelTestType { | 34 enum PixelTestType { |
35 PIXEL_TEST_GL, | 35 PIXEL_TEST_GL, |
36 PIXEL_TEST_SOFTWARE, | 36 PIXEL_TEST_SOFTWARE, |
37 }; | 37 }; |
38 | 38 |
39 protected: | 39 protected: |
40 LayerTreePixelTest(); | 40 LayerTreePixelTest(); |
41 ~LayerTreePixelTest() override; | 41 ~LayerTreePixelTest() override; |
42 | 42 |
43 scoped_ptr<OutputSurface> CreateOutputSurface() override; | 43 scoped_ptr<OutputSurface> CreateOutputSurface() override; |
44 void WillActivateTreeOnThread(LayerTreeHostImpl* impl) override; | 44 void CommitCompleteOnThread(LayerTreeHostImpl* impl) override; |
45 | 45 |
46 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); | 46 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); |
47 | 47 |
48 void ReadbackResult(scoped_ptr<CopyOutputResult> result); | 48 void ReadbackResult(scoped_ptr<CopyOutputResult> result); |
49 | 49 |
50 void BeginTest() override; | 50 void BeginTest() override; |
51 void SetupTree() override; | 51 void SetupTree() override; |
52 void AfterTest() override; | 52 void AfterTest() override; |
53 void EndTest() override; | 53 void EndTest() override; |
54 | 54 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 scoped_ptr<SkBitmap> result_bitmap_; | 109 scoped_ptr<SkBitmap> result_bitmap_; |
110 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 110 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
111 int pending_texture_mailbox_callbacks_; | 111 int pending_texture_mailbox_callbacks_; |
112 bool impl_side_painting_; | 112 bool impl_side_painting_; |
113 gfx::Vector2d enlarge_texture_amount_; | 113 gfx::Vector2d enlarge_texture_amount_; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace cc | 116 } // namespace cc |
117 | 117 |
118 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 118 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
OLD | NEW |