OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HOST_REMOTE_FOR_TESTING_H_ | 5 #ifndef CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ |
6 #define CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ | 6 #define CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/blimp/compositor_state_deserializer.h" | 9 #include "cc/blimp/compositor_state_deserializer.h" |
10 #include "cc/blimp/layer_tree_host_remote.h" | 10 #include "cc/blimp/layer_tree_host_remote.h" |
11 | 11 |
12 namespace gpu { | |
13 class GpuMemoryBufferManager; | |
14 } // namespace gpu | |
15 | |
16 namespace cc { | 12 namespace cc { |
17 | 13 |
18 class AnimationHost; | 14 class AnimationHost; |
| 15 class CompositorProtoState; |
19 class FakeImageSerializationProcessor; | 16 class FakeImageSerializationProcessor; |
20 class LayerTreeHostInProcess; | 17 class LayerTreeHostInProcess; |
21 class MutatorHost; | 18 class MutatorHost; |
22 class SharedBitmapManager; | |
23 class TaskGraphRunner; | 19 class TaskGraphRunner; |
24 | 20 |
25 // This is a version of LayerTreeHostRemote meant to be used for tests that want | 21 // This is a version of LayerTreeHostRemote meant to be used for tests that want |
26 // to inspect the CompositorFrame produced when state updates from the remote | 22 // to inspect the CompositorFrame produced when state updates from the remote |
27 // host are used by a compositor on the client. | 23 // host are used by a compositor on the client. |
28 class LayerTreeHostRemoteForTesting : public LayerTreeHostRemote, | 24 class LayerTreeHostRemoteForTesting : public LayerTreeHostRemote, |
29 public CompositorStateDeserializerClient { | 25 public CompositorStateDeserializerClient { |
30 public: | 26 public: |
31 static std::unique_ptr<LayerTreeHostRemoteForTesting> Create( | 27 static std::unique_ptr<LayerTreeHostRemoteForTesting> Create( |
32 LayerTreeHostClient* client, | 28 LayerTreeHostClient* client, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 95 |
100 std::unique_ptr<FakeImageSerializationProcessor> | 96 std::unique_ptr<FakeImageSerializationProcessor> |
101 image_serialization_processor_; | 97 image_serialization_processor_; |
102 | 98 |
103 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); | 99 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); |
104 }; | 100 }; |
105 | 101 |
106 } // namespace cc | 102 } // namespace cc |
107 | 103 |
108 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ | 104 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ |
OLD | NEW |