Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: cc/test/compositor_frame_helpers.h

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)
Patch Set: Rebase SurfaceSynchronizationTest Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/surfaces/surface_synchronization_unittest.cc ('k') | cc/test/compositor_frame_helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Creates a valid CompositorFrame. 19 // Creates a valid CompositorFrame.
15 CompositorFrame MakeCompositorFrame(); 20 CompositorFrame MakeCompositorFrame();
16 21
17 // Creates a CompositorFrame that will be valid once its render_pass_list is 22 // Creates a CompositorFrame that will be valid once its render_pass_list is
18 // initialized. 23 // initialized.
19 CompositorFrame MakeEmptyCompositorFrame(); 24 CompositorFrame MakeEmptyCompositorFrame();
20 25
26 CompositorFrame MakeCompositorFrame(
27 std::vector<SurfaceId> activation_dependencies,
28 std::vector<SurfaceId> referenced_surfaces,
29 TransferableResourceArray resource_list);
30
21 } // namespace test 31 } // namespace test
22 } // namespace cc 32 } // namespace cc
23 33
24 #endif // CC_TEST_COMPOSITOR_FRAME_HELPERS_H_ 34 #endif // CC_TEST_COMPOSITOR_FRAME_HELPERS_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_synchronization_unittest.cc ('k') | cc/test/compositor_frame_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698