| 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 "blimp/engine/renderer/blimp_remote_compositor_bridge.h" | 5 #include "blimp/engine/renderer/blimp_remote_compositor_bridge.h" |
| 6 | 6 |
| 7 #include "cc/blimp/compositor_proto_state.h" | 7 #include "cc/blimp/compositor_proto_state.h" |
| 8 #include "cc/blimp/remote_compositor_bridge_client.h" | 8 #include "cc/blimp/remote_compositor_bridge_client.h" |
| 9 #include "cc/output/swap_promise.h" | 9 #include "cc/output/swap_promise.h" |
| 10 #include "cc/proto/compositor_message.pb.h" | 10 #include "cc/proto/compositor_message.pb.h" |
| 11 | 11 |
| 12 namespace blimp { | 12 namespace blimp { |
| 13 namespace engine { | 13 namespace engine { |
| 14 | 14 |
| 15 BlimpRemoteCompositorBridge::BlimpRemoteCompositorBridge( | 15 BlimpRemoteCompositorBridge::BlimpRemoteCompositorBridge( |
| 16 cc::RemoteProtoChannel* remote_proto_channel, | 16 content::RemoteProtoChannel* remote_proto_channel, |
| 17 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner) | 17 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner) |
| 18 : RemoteCompositorBridge(std::move(compositor_main_task_runner)), | 18 : RemoteCompositorBridge(std::move(compositor_main_task_runner)), |
| 19 remote_proto_channel_(remote_proto_channel), | 19 remote_proto_channel_(remote_proto_channel), |
| 20 scheduler_(compositor_main_task_runner_.get(), this) { | 20 scheduler_(compositor_main_task_runner_.get(), this) { |
| 21 remote_proto_channel_->SetProtoReceiver(this); | 21 remote_proto_channel_->SetProtoReceiver(this); |
| 22 } | 22 } |
| 23 | 23 |
| 24 BlimpRemoteCompositorBridge::~BlimpRemoteCompositorBridge() { | 24 BlimpRemoteCompositorBridge::~BlimpRemoteCompositorBridge() { |
| 25 remote_proto_channel_->SetProtoReceiver(nullptr); | 25 remote_proto_channel_->SetProtoReceiver(nullptr); |
| 26 } | 26 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 if (client_state_update_ack_pending_) { | 82 if (client_state_update_ack_pending_) { |
| 83 client_state_update_ack_pending_ = false; | 83 client_state_update_ack_pending_ = false; |
| 84 cc::proto::CompositorMessage message; | 84 cc::proto::CompositorMessage message; |
| 85 message.set_client_state_update_ack(true); | 85 message.set_client_state_update_ack(true); |
| 86 remote_proto_channel_->SendCompositorProto(message); | 86 remote_proto_channel_->SendCompositorProto(message); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace engine | 90 } // namespace engine |
| 91 } // namespace blimp | 91 } // namespace blimp |
| OLD | NEW |