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 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
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 virtual ~LayerTreePixelTest(); | 41 virtual ~LayerTreePixelTest(); |
42 | 42 |
43 scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) override; | 43 scoped_ptr<OutputSurface> CreateOutputSurface() override; |
44 void CommitCompleteOnThread(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; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 base::FilePath ref_file_; | 104 base::FilePath ref_file_; |
105 scoped_ptr<SkBitmap> result_bitmap_; | 105 scoped_ptr<SkBitmap> result_bitmap_; |
106 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 106 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
107 int pending_texture_mailbox_callbacks_; | 107 int pending_texture_mailbox_callbacks_; |
108 bool impl_side_painting_; | 108 bool impl_side_painting_; |
109 }; | 109 }; |
110 | 110 |
111 } // namespace cc | 111 } // namespace cc |
112 | 112 |
113 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 113 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
OLD | NEW |