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_client.h" | 9 #include "cc/blimp/compositor_state_deserializer_client.h" |
10 #include "cc/blimp/layer_tree_host_remote.h" | 10 #include "cc/blimp/layer_tree_host_remote.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 private: | 80 private: |
81 class LayerTreeHostInProcessClient; | 81 class LayerTreeHostInProcessClient; |
82 class RemoteCompositorBridgeImpl; | 82 class RemoteCompositorBridgeImpl; |
83 | 83 |
84 // CompositorStateDeserializerClient implementation. | 84 // CompositorStateDeserializerClient implementation. |
85 bool ShouldRetainClientScroll(int engine_layer_id, | 85 bool ShouldRetainClientScroll(int engine_layer_id, |
86 const gfx::ScrollOffset& new_offset) override; | 86 const gfx::ScrollOffset& new_offset) override; |
87 bool ShouldRetainClientPageScale(float new_page_scale) override; | 87 bool ShouldRetainClientPageScale(float new_page_scale) override; |
88 | 88 |
89 // LayerTreeHostRemote interface. | 89 // LayerTreeHostRemote interface. |
90 void DispatchDrawAndSwapCallbacks() override; | 90 void DispatchDrawAndSubmitCallbacks() override; |
91 | 91 |
92 void LayerDidScroll(int engine_layer_id); | 92 void LayerDidScroll(int engine_layer_id); |
93 void ApplyUpdatesFromInProcessHost(); | 93 void ApplyUpdatesFromInProcessHost(); |
94 | 94 |
95 void RemoteHostNeedsMainFrame(); | 95 void RemoteHostNeedsMainFrame(); |
96 void ProcessRemoteCompositorUpdate( | 96 void ProcessRemoteCompositorUpdate( |
97 std::unique_ptr<CompositorProtoState> compositor_proto_state); | 97 std::unique_ptr<CompositorProtoState> compositor_proto_state); |
98 void UpdateStateOnInProcessHost(); | 98 void UpdateStateOnInProcessHost(); |
99 | 99 |
100 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_; | 100 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_; |
101 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_; | 101 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_; |
102 | 102 |
103 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_; | 103 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_; |
104 ScrollOffsetMap layers_scrolled_; | 104 ScrollOffsetMap layers_scrolled_; |
105 | 105 |
106 std::unique_ptr<LayerTreeHostInProcessClient> | 106 std::unique_ptr<LayerTreeHostInProcessClient> |
107 layer_tree_host_in_process_client_; | 107 layer_tree_host_in_process_client_; |
108 | 108 |
109 std::unique_ptr<FakeImageSerializationProcessor> | 109 std::unique_ptr<FakeImageSerializationProcessor> |
110 image_serialization_processor_; | 110 image_serialization_processor_; |
111 | 111 |
112 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); | 112 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); |
113 }; | 113 }; |
114 | 114 |
115 } // namespace cc | 115 } // namespace cc |
116 | 116 |
117 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ | 117 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ |
OLD | NEW |