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 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "cc/resources/single_release_callback.h" | 13 #include "cc/resources/single_release_callback.h" |
14 #include "cc/test/layer_tree_test.h" | 14 #include "cc/test/layer_tree_test.h" |
15 #include "ui/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
16 | 16 |
17 class SkBitmap; | 17 class SkBitmap; |
18 | 18 |
19 namespace gpu { | |
20 class GLInProcessContext; | |
21 } | |
22 | |
23 namespace cc { | 19 namespace cc { |
24 class CopyOutputRequest; | 20 class CopyOutputRequest; |
25 class CopyOutputResult; | 21 class CopyOutputResult; |
26 class LayerTreeHost; | |
27 class PixelComparator; | 22 class PixelComparator; |
28 class SolidColorLayer; | 23 class SolidColorLayer; |
29 class TextureLayer; | 24 class TextureLayer; |
30 class TextureMailbox; | 25 class TextureMailbox; |
31 | 26 |
32 class LayerTreePixelTest : public LayerTreeTest { | 27 class LayerTreePixelTest : public LayerTreeTest { |
33 public: | 28 public: |
34 enum PixelTestType { | 29 enum PixelTestType { |
35 PIXEL_TEST_GL, | 30 PIXEL_TEST_GL, |
36 PIXEL_TEST_SOFTWARE, | 31 PIXEL_TEST_SOFTWARE, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 base::FilePath ref_file_; | 100 base::FilePath ref_file_; |
106 std::unique_ptr<SkBitmap> result_bitmap_; | 101 std::unique_ptr<SkBitmap> result_bitmap_; |
107 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 102 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
108 int pending_texture_mailbox_callbacks_; | 103 int pending_texture_mailbox_callbacks_; |
109 gfx::Size enlarge_texture_amount_; | 104 gfx::Size enlarge_texture_amount_; |
110 }; | 105 }; |
111 | 106 |
112 } // namespace cc | 107 } // namespace cc |
113 | 108 |
114 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 109 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
OLD | NEW |