| 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_IMPL_H_ | 5 #ifndef CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
| 6 #define CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 6 #define CC_TREES_REMOTE_CHANNEL_IMPL_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 "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr); | 124 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr); |
| 125 ~CompositorThreadOnly(); | 125 ~CompositorThreadOnly(); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 // called on main thread. | 128 // called on main thread. |
| 129 // RemoteProtoChannel::ProtoReceiver implementation. | 129 // RemoteProtoChannel::ProtoReceiver implementation. |
| 130 void OnProtoReceived( | 130 void OnProtoReceived( |
| 131 std::unique_ptr<proto::CompositorMessage> proto) override; | 131 std::unique_ptr<proto::CompositorMessage> proto) override; |
| 132 | 132 |
| 133 // Proxy implementation | 133 // Proxy implementation |
| 134 void FinishAllRendering() override; | |
| 135 bool IsStarted() const override; | 134 bool IsStarted() const override; |
| 136 bool CommitToActiveTree() const override; | 135 bool CommitToActiveTree() const override; |
| 137 void SetOutputSurface(OutputSurface* output_surface) override; | 136 void SetOutputSurface(OutputSurface* output_surface) override; |
| 138 void ReleaseOutputSurface() override; | 137 void ReleaseOutputSurface() override; |
| 139 void SetVisible(bool visible) override; | 138 void SetVisible(bool visible) override; |
| 140 const RendererCapabilities& GetRendererCapabilities() const override; | 139 const RendererCapabilities& GetRendererCapabilities() const override; |
| 141 void SetNeedsAnimate() override; | 140 void SetNeedsAnimate() override; |
| 142 void SetNeedsUpdateLayers() override; | 141 void SetNeedsUpdateLayers() override; |
| 143 void SetNeedsCommit() override; | 142 void SetNeedsCommit() override; |
| 144 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 143 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 CompositorThreadOnly compositor_thread_vars_unsafe_; | 207 CompositorThreadOnly compositor_thread_vars_unsafe_; |
| 209 | 208 |
| 210 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 209 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
| 211 | 210 |
| 212 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); | 211 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); |
| 213 }; | 212 }; |
| 214 | 213 |
| 215 } // namespace cc | 214 } // namespace cc |
| 216 | 215 |
| 217 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 216 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
| OLD | NEW |