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

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

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 years, 1 month 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/test/layer_tree_pixel_test.h ('k') | cc/test/surface_aggregator_test_helpers.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TEST_H_ 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_
6 #define CC_TEST_LAYER_TREE_TEST_H_ 6 #define CC_TEST_LAYER_TREE_TEST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "cc/animation/animation_delegate.h" 10 #include "cc/animation/animation_delegate.h"
11 #include "cc/test/test_gpu_memory_buffer_manager.h" 11 #include "cc/test/test_gpu_memory_buffer_manager.h"
12 #include "cc/test/test_hooks.h" 12 #include "cc/test/test_hooks.h"
13 #include "cc/test/test_task_graph_runner.h" 13 #include "cc/test/test_task_graph_runner.h"
14 #include "cc/trees/compositor_mode.h" 14 #include "cc/trees/compositor_mode.h"
15 #include "cc/trees/layer_tree_host_impl.h" 15 #include "cc/trees/layer_tree_host_impl.h"
16 #include "cc/trees/layer_tree_host_in_process.h" 16 #include "cc/trees/layer_tree_host_in_process.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 class AnimationHost; 21 class AnimationHost;
22 class AnimationPlayer; 22 class AnimationPlayer;
23 class FakeLayerTreeHostClient;
24 class LayerImpl; 23 class LayerImpl;
25 class LayerTreeHost; 24 class LayerTreeHost;
26 class LayerTreeHostForTesting; 25 class LayerTreeHostForTesting;
27 class LayerTreeHostClient;
28 class LayerTreeHostImpl;
29 class LayerTreeTestCompositorFrameSinkClient; 26 class LayerTreeTestCompositorFrameSinkClient;
30 class Proxy; 27 class Proxy;
31 class ProxyImpl;
32 class ProxyMain;
33 class TestContextProvider; 28 class TestContextProvider;
34 class TestCompositorFrameSink; 29 class TestCompositorFrameSink;
35 class TestTaskGraphRunner; 30 class TestTaskGraphRunner;
36 class TestWebGraphicsContext3D;
37 31
38 // Creates the virtual viewport layer hierarchy under the given root_layer. 32 // Creates the virtual viewport layer hierarchy under the given root_layer.
39 // Convenient overload of the method below that creates a scrolling layer as 33 // Convenient overload of the method below that creates a scrolling layer as
40 // the outer viewport scroll layer. 34 // the outer viewport scroll layer.
41 void CreateVirtualViewportLayers(Layer* root_layer, 35 void CreateVirtualViewportLayers(Layer* root_layer,
42 const gfx::Size& inner_bounds, 36 const gfx::Size& inner_bounds,
43 const gfx::Size& outer_bounds, 37 const gfx::Size& outer_bounds,
44 const gfx::Size& scroll_bounds, 38 const gfx::Size& scroll_bounds,
45 LayerTreeHost* host); 39 LayerTreeHost* host);
46 40
47 // Creates the virtual viewport layer hierarchy under the given root_layer. 41 // Creates the virtual viewport layer hierarchy under the given root_layer.
48 // Uses the given scroll layer as the content "outer viewport scroll layer". 42 // Uses the given scroll layer as the content "outer viewport scroll layer".
49 void CreateVirtualViewportLayers(Layer* root_layer, 43 void CreateVirtualViewportLayers(Layer* root_layer,
50 scoped_refptr<Layer> outer_scroll_layer, 44 scoped_refptr<Layer> outer_scroll_layer,
51 const gfx::Size& outer_bounds, 45 const gfx::Size& outer_bounds,
52 const gfx::Size& scroll_bounds, 46 const gfx::Size& scroll_bounds,
53 LayerTreeHost* host); 47 LayerTreeHost* host);
54 48
55 class BeginTask;
56 class LayerTreeHostClientForTesting; 49 class LayerTreeHostClientForTesting;
57 class TimeoutTask;
58 50
59 // The LayerTreeTests runs with the main loop running. It instantiates a single 51 // The LayerTreeTests runs with the main loop running. It instantiates a single
60 // LayerTreeHostForTesting and associated LayerTreeHostImplForTesting and 52 // LayerTreeHostForTesting and associated LayerTreeHostImplForTesting and
61 // LayerTreeHostClientForTesting. 53 // LayerTreeHostClientForTesting.
62 // 54 //
63 // BeginTest() is called once the main message loop is running and the layer 55 // BeginTest() is called once the main message loop is running and the layer
64 // tree host is initialized. 56 // tree host is initialized.
65 // 57 //
66 // Key stages of the drawing loop, e.g. drawing or commiting, redirect to 58 // Key stages of the drawing loop, e.g. drawing or commiting, redirect to
67 // LayerTreeTest methods of similar names. To track the commit process, override 59 // LayerTreeTest methods of similar names. To track the commit process, override
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 #define SINGLE_MULTI_AND_REMOTE_TEST_F(TEST_FIXTURE_NAME) \ 231 #define SINGLE_MULTI_AND_REMOTE_TEST_F(TEST_FIXTURE_NAME) \
240 SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ 232 SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \
241 REMOTE_TEST_F(TEST_FIXTURE_NAME) 233 REMOTE_TEST_F(TEST_FIXTURE_NAME)
242 234
243 // Some tests want to control when notify ready for activation occurs, 235 // Some tests want to control when notify ready for activation occurs,
244 // but this is not supported in the single-threaded case. 236 // but this is not supported in the single-threaded case.
245 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 237 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
246 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 238 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
247 239
248 #endif // CC_TEST_LAYER_TREE_TEST_H_ 240 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/test/surface_aggregator_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698