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 26 matching lines...) Expand all Loading... |
37 }; | 37 }; |
38 | 38 |
39 protected: | 39 protected: |
40 LayerTreePixelTest(); | 40 LayerTreePixelTest(); |
41 ~LayerTreePixelTest() override; | 41 ~LayerTreePixelTest() override; |
42 | 42 |
43 // LayerTreeTest overrides. | 43 // LayerTreeTest overrides. |
44 std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink( | 44 std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink( |
45 scoped_refptr<ContextProvider> compositor_context_provider, | 45 scoped_refptr<ContextProvider> compositor_context_provider, |
46 scoped_refptr<ContextProvider> worker_context_provider) override; | 46 scoped_refptr<ContextProvider> worker_context_provider) override; |
47 std::unique_ptr<OutputSurface> CreateDisplayOutputSurface( | 47 std::unique_ptr<OutputSurface> CreateDisplayOutputSurfaceOnThread( |
48 scoped_refptr<ContextProvider> compositor_context_provider) override; | 48 scoped_refptr<ContextProvider> compositor_context_provider) override; |
49 | 49 |
50 virtual std::unique_ptr<CopyOutputRequest> CreateCopyOutputRequest(); | 50 virtual std::unique_ptr<CopyOutputRequest> CreateCopyOutputRequest(); |
51 | 51 |
52 void ReadbackResult(std::unique_ptr<CopyOutputResult> result); | 52 void ReadbackResult(std::unique_ptr<CopyOutputResult> result); |
53 | 53 |
54 void BeginTest() override; | 54 void BeginTest() override; |
55 void SetupTree() override; | 55 void SetupTree() override; |
56 void AfterTest() override; | 56 void AfterTest() override; |
57 void EndTest() override; | 57 void EndTest() override; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 base::FilePath ref_file_; | 105 base::FilePath ref_file_; |
106 std::unique_ptr<SkBitmap> result_bitmap_; | 106 std::unique_ptr<SkBitmap> result_bitmap_; |
107 std::vector<scoped_refptr<TextureLayer>> texture_layers_; | 107 std::vector<scoped_refptr<TextureLayer>> texture_layers_; |
108 int pending_texture_mailbox_callbacks_; | 108 int pending_texture_mailbox_callbacks_; |
109 gfx::Size enlarge_texture_amount_; | 109 gfx::Size enlarge_texture_amount_; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace cc | 112 } // namespace cc |
113 | 113 |
114 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ | 114 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ |
OLD | NEW |