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 #include "cc/test/remote_compositor_test.h" | 5 #include "cc/test/remote_compositor_test.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
8 #include "cc/animation/animation_host.h" | 9 #include "cc/animation/animation_host.h" |
9 #include "cc/blimp/compositor_proto_state.h" | 10 #include "cc/blimp/compositor_proto_state.h" |
10 #include "cc/blimp/layer_tree_host_remote.h" | 11 #include "cc/blimp/layer_tree_host_remote.h" |
11 #include "cc/proto/compositor_message.pb.h" | 12 #include "cc/proto/compositor_message.pb.h" |
12 #include "cc/test/fake_layer_tree_host.h" | 13 #include "cc/test/fake_layer_tree_host.h" |
13 #include "cc/test/fake_proxy.h" | 14 #include "cc/test/fake_proxy.h" |
14 #include "cc/test/fake_remote_compositor_bridge.h" | 15 #include "cc/test/fake_remote_compositor_bridge.h" |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 return fake_remote_compositor_bridge_->has_pending_update(); | 120 return fake_remote_compositor_bridge_->has_pending_update(); |
120 } | 121 } |
121 | 122 |
122 void RemoteCompositorTest::ProcessCompositorStateUpdate( | 123 void RemoteCompositorTest::ProcessCompositorStateUpdate( |
123 std::unique_ptr<CompositorProtoState> compositor_proto_state) { | 124 std::unique_ptr<CompositorProtoState> compositor_proto_state) { |
124 compositor_state_deserializer_->DeserializeCompositorUpdate( | 125 compositor_state_deserializer_->DeserializeCompositorUpdate( |
125 compositor_proto_state->compositor_message->layer_tree_host()); | 126 compositor_proto_state->compositor_message->layer_tree_host()); |
126 } | 127 } |
127 | 128 |
128 } // namespace cc | 129 } // namespace cc |
OLD | NEW |