OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_COMPOSITOR_FRAME_HELPERS_H_ | 5 #ifndef CC_TEST_COMPOSITOR_FRAME_HELPERS_H_ |
6 #define CC_TEST_COMPOSITOR_FRAME_HELPERS_H_ | 6 #define CC_TEST_COMPOSITOR_FRAME_HELPERS_H_ |
7 | 7 |
8 #include <vector> | |
9 | |
10 #include "cc/resources/transferable_resource.h" | |
11 #include "cc/surfaces/surface_id.h" | |
12 | |
8 namespace cc { | 13 namespace cc { |
9 | 14 |
10 class CompositorFrame; | 15 class CompositorFrame; |
11 | 16 |
12 namespace test { | 17 namespace test { |
13 | 18 |
14 CompositorFrame MakeCompositorFrame(); | 19 CompositorFrame MakeCompositorFrame(); |
15 | 20 |
21 CompositorFrame MakeCompositorFrame(std::vector<SurfaceId> embedded_surfaces); | |
22 | |
23 CompositorFrame MakeCompositorFrame(std::vector<SurfaceId> embedded_surfaces, | |
24 std::vector<SurfaceId> referenced_surfaces); | |
25 | |
26 CompositorFrame MakeCompositorFrameWithResources( | |
27 std::vector<SurfaceId> embedded_surfaces, | |
28 TransferableResourceArray resource_list); | |
29 | |
30 TransferableResource MakeResource(ResourceId id, | |
31 ResourceFormat format, | |
32 uint32_t filter, | |
33 const gfx::Size& size); | |
34 | |
35 CompositorFrame MakeCompositorFrame(std::vector<SurfaceId> embedded_surfaces, | |
danakj
2017/05/03 16:08:39
wdyt of removing other MakeCompositorFrame() overr
Alex Z.
2017/05/03 18:07:37
Done.
| |
36 std::vector<SurfaceId> referenced_surfaces, | |
37 TransferableResourceArray resource_list); | |
38 | |
16 } // namespace test | 39 } // namespace test |
17 } // namespace cc | 40 } // namespace cc |
18 | 41 |
19 #endif // CC_TEST_COMPOSITOR_FRAME_HELPERS_H_ | 42 #endif // CC_TEST_COMPOSITOR_FRAME_HELPERS_H_ |
OLD | NEW |