| 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 BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_ | 5 #ifndef BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_ |
| 6 #define BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_ | 6 #define BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "blimp/engine/renderer/frame_scheduler.h" | 10 #include "blimp/engine/renderer/frame_scheduler.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // cc::RemoteProtoChannel::ProtoReceiver implementation. | 37 // cc::RemoteProtoChannel::ProtoReceiver implementation. |
| 38 void OnProtoReceived( | 38 void OnProtoReceived( |
| 39 std::unique_ptr<cc::proto::CompositorMessage> proto) override; | 39 std::unique_ptr<cc::proto::CompositorMessage> proto) override; |
| 40 | 40 |
| 41 // FrameSchedulerClient implementation. | 41 // FrameSchedulerClient implementation. |
| 42 void StartFrameUpdate() override; | 42 void StartFrameUpdate() override; |
| 43 | 43 |
| 44 cc::RemoteProtoChannel* remote_proto_channel_; | 44 cc::RemoteProtoChannel* remote_proto_channel_; |
| 45 cc::RemoteCompositorBridgeClient* client_ = nullptr; | 45 cc::RemoteCompositorBridgeClient* client_ = nullptr; |
| 46 | 46 |
| 47 bool client_state_update_ack_pending_ = false; |
| 48 |
| 47 FrameScheduler scheduler_; | 49 FrameScheduler scheduler_; |
| 48 | 50 |
| 49 DISALLOW_COPY_AND_ASSIGN(BlimpRemoteCompositorBridge); | 51 DISALLOW_COPY_AND_ASSIGN(BlimpRemoteCompositorBridge); |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace engine | 54 } // namespace engine |
| 53 } // namespace blimp | 55 } // namespace blimp |
| 54 | 56 |
| 55 #endif // BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_ | 57 #endif // BLIMP_ENGINE_RENDERER_BLIMP_REMOTE_COMPOSITOR_BRIDGE_H_ |
| OLD | NEW |