| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // LayerTreeHostRemote interface. | 88 // LayerTreeHostRemote interface. |
| 89 void DispatchDrawAndSubmitCallbacks() override; | 89 void DispatchDrawAndSubmitCallbacks() override; |
| 90 | 90 |
| 91 void LayerDidScroll(int engine_layer_id); | 91 void LayerDidScroll(int engine_layer_id); |
| 92 void ApplyUpdatesFromInProcessHost(); | 92 void ApplyUpdatesFromInProcessHost(); |
| 93 | 93 |
| 94 void RemoteHostNeedsMainFrame(); | 94 void RemoteHostNeedsMainFrame(); |
| 95 void ProcessRemoteCompositorUpdate( | 95 void ProcessRemoteCompositorUpdate( |
| 96 std::unique_ptr<CompositorProtoState> compositor_proto_state); | 96 std::unique_ptr<CompositorProtoState> compositor_proto_state); |
| 97 void UpdateStateOnInProcessHost(); | |
| 98 | 97 |
| 99 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_; | 98 std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_; |
| 100 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_; | 99 std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_; |
| 101 | 100 |
| 102 std::unique_ptr<CompositorProtoState> pending_compositor_proto_state_; | |
| 103 ScrollOffsetMap layers_scrolled_; | 101 ScrollOffsetMap layers_scrolled_; |
| 104 | 102 |
| 105 std::unique_ptr<LayerTreeHostInProcessClient> | 103 std::unique_ptr<LayerTreeHostInProcessClient> |
| 106 layer_tree_host_in_process_client_; | 104 layer_tree_host_in_process_client_; |
| 107 | 105 |
| 108 std::unique_ptr<FakeImageSerializationProcessor> | 106 std::unique_ptr<FakeImageSerializationProcessor> |
| 109 image_serialization_processor_; | 107 image_serialization_processor_; |
| 110 | 108 |
| 111 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); | 109 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostRemoteForTesting); |
| 112 }; | 110 }; |
| 113 | 111 |
| 114 } // namespace cc | 112 } // namespace cc |
| 115 | 113 |
| 116 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ | 114 #endif // CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_ |
| OLD | NEW |