| 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_TREES_REMOTE_CHANNEL_MAIN_H_ | 5 #ifndef CC_TREES_REMOTE_CHANNEL_MAIN_H_ |
| 6 #define CC_TREES_REMOTE_CHANNEL_MAIN_H_ | 6 #define CC_TREES_REMOTE_CHANNEL_MAIN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/trees/channel_main.h" | 10 #include "cc/trees/channel_main.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 protected: | 65 protected: |
| 66 RemoteChannelMain(RemoteProtoChannel* remote_proto_channel, | 66 RemoteChannelMain(RemoteProtoChannel* remote_proto_channel, |
| 67 ProxyMain* proxy_main, | 67 ProxyMain* proxy_main, |
| 68 TaskRunnerProvider* task_runner_provider); | 68 TaskRunnerProvider* task_runner_provider); |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 void SendMessageProto(const proto::CompositorMessage& proto); | 71 void SendMessageProto(const proto::CompositorMessage& proto); |
| 72 void HandleProto(const proto::CompositorMessageToMain& proto); | 72 void HandleProto(const proto::CompositorMessageToMain& proto); |
| 73 void DidCommitAndDrawFrame(); | 73 void DidCommitAndDrawFrame(); |
| 74 void DidCompleteSwapBuffers(); | 74 void DidReceiveCompositorFrameAck(); |
| 75 | 75 |
| 76 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; | 76 base::SingleThreadTaskRunner* MainThreadTaskRunner() const; |
| 77 | 77 |
| 78 RemoteProtoChannel* remote_proto_channel_; | 78 RemoteProtoChannel* remote_proto_channel_; |
| 79 ProxyMain* proxy_main_; | 79 ProxyMain* proxy_main_; |
| 80 TaskRunnerProvider* task_runner_provider_; | 80 TaskRunnerProvider* task_runner_provider_; |
| 81 | 81 |
| 82 bool initialized_; | 82 bool initialized_; |
| 83 | 83 |
| 84 base::WeakPtrFactory<RemoteChannelMain> weak_factory_; | 84 base::WeakPtrFactory<RemoteChannelMain> weak_factory_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(RemoteChannelMain); | 86 DISALLOW_COPY_AND_ASSIGN(RemoteChannelMain); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace cc | 89 } // namespace cc |
| 90 | 90 |
| 91 #endif // CC_TREES_REMOTE_CHANNEL_MAIN_H_ | 91 #endif // CC_TREES_REMOTE_CHANNEL_MAIN_H_ |
| OLD | NEW |