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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // RemoteProtoChannel::ProtoReceiver implementation. | 127 // RemoteProtoChannel::ProtoReceiver implementation. |
128 void OnProtoReceived(scoped_ptr<proto::CompositorMessage> proto) override; | 128 void OnProtoReceived(scoped_ptr<proto::CompositorMessage> proto) override; |
129 | 129 |
130 // Proxy implementation | 130 // Proxy implementation |
131 void FinishAllRendering() override; | 131 void FinishAllRendering() override; |
132 bool IsStarted() const override; | 132 bool IsStarted() const override; |
133 bool CommitToActiveTree() const override; | 133 bool CommitToActiveTree() const override; |
134 void SetOutputSurface(OutputSurface* output_surface) override; | 134 void SetOutputSurface(OutputSurface* output_surface) override; |
135 void ReleaseOutputSurface() override; | 135 void ReleaseOutputSurface() override; |
136 void SetVisible(bool visible) override; | 136 void SetVisible(bool visible) override; |
137 void SetThrottleFrameProduction(bool throttle) override; | |
138 const RendererCapabilities& GetRendererCapabilities() const override; | 137 const RendererCapabilities& GetRendererCapabilities() const override; |
139 void SetNeedsAnimate() override; | 138 void SetNeedsAnimate() override; |
140 void SetNeedsUpdateLayers() override; | 139 void SetNeedsUpdateLayers() override; |
141 void SetNeedsCommit() override; | 140 void SetNeedsCommit() override; |
142 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 141 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
143 void SetNextCommitWaitsForActivation() override; | 142 void SetNextCommitWaitsForActivation() override; |
144 void NotifyInputThrottledUntilCommit() override; | 143 void NotifyInputThrottledUntilCommit() override; |
145 void SetDeferCommits(bool defer_commits) override; | 144 void SetDeferCommits(bool defer_commits) override; |
146 void MainThreadHasStoppedFlinging() override; | 145 void MainThreadHasStoppedFlinging() override; |
147 bool CommitRequested() const override; | 146 bool CommitRequested() const override; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 CompositorThreadOnly compositor_thread_vars_unsafe_; | 206 CompositorThreadOnly compositor_thread_vars_unsafe_; |
208 | 207 |
209 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; | 208 base::WeakPtr<ProxyImpl> proxy_impl_weak_ptr_; |
210 | 209 |
211 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); | 210 DISALLOW_COPY_AND_ASSIGN(RemoteChannelImpl); |
212 }; | 211 }; |
213 | 212 |
214 } // namespace cc | 213 } // namespace cc |
215 | 214 |
216 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ | 215 #endif // CC_TREES_REMOTE_CHANNEL_IMPL_H_ |
OLD | NEW |