Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROXY_IMPL_H_ | 5 #ifndef CC_TREES_PROXY_IMPL_H_ |
| 6 #define CC_TREES_PROXY_IMPL_H_ | 6 #define CC_TREES_PROXY_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "cc/base/completion_event.h" | 11 #include "cc/base/completion_event.h" |
| 12 #include "cc/base/delayed_unique_notifier.h" | 12 #include "cc/base/delayed_unique_notifier.h" |
| 13 #include "cc/input/top_controls_state.h" | 13 #include "cc/input/browser_controls_state.h" |
| 14 #include "cc/scheduler/scheduler.h" | 14 #include "cc/scheduler/scheduler.h" |
| 15 #include "cc/trees/channel_impl.h" | 15 #include "cc/trees/channel_impl.h" |
| 16 #include "cc/trees/layer_tree_host_impl.h" | 16 #include "cc/trees/layer_tree_host_impl.h" |
| 17 | 17 |
| 18 namespace cc { | 18 namespace cc { |
| 19 class LayerTreeHostInProcess; | 19 class LayerTreeHostInProcess; |
| 20 | 20 |
| 21 // This class aggregates all the interactions that the main side of the | 21 // This class aggregates all the interactions that the main side of the |
| 22 // compositor needs to have with the impl side. It is created and owned by the | 22 // compositor needs to have with the impl side. It is created and owned by the |
| 23 // ChannelImpl implementation. The class lives entirely on the impl thread. | 23 // ChannelImpl implementation. The class lives entirely on the impl thread. |
| 24 class CC_EXPORT ProxyImpl : public NON_EXPORTED_BASE(LayerTreeHostImplClient), | 24 class CC_EXPORT ProxyImpl : public NON_EXPORTED_BASE(LayerTreeHostImplClient), |
| 25 public NON_EXPORTED_BASE(SchedulerClient) { | 25 public NON_EXPORTED_BASE(SchedulerClient) { |
| 26 public: | 26 public: |
| 27 ProxyImpl(ChannelImpl* channel_impl, | 27 ProxyImpl(ChannelImpl* channel_impl, |
| 28 LayerTreeHostInProcess* layer_tree_host, | 28 LayerTreeHostInProcess* layer_tree_host, |
| 29 TaskRunnerProvider* task_runner_provider); | 29 TaskRunnerProvider* task_runner_provider); |
| 30 ~ProxyImpl() override; | 30 ~ProxyImpl() override; |
| 31 | 31 |
| 32 // Virtual for testing. | 32 // Virtual for testing. |
| 33 void UpdateTopControlsStateOnImpl(TopControlsState constraints, | 33 void UpdateTopControlsStateOnImpl(BrowserControlsState constraints, |
|
vmpstr
2016/10/21 17:54:58
dittoOnImpl
mdjones
2016/10/24 21:20:24
Done.
| |
| 34 TopControlsState current, | 34 BrowserControlsState current, |
| 35 bool animate); | 35 bool animate); |
| 36 void InitializeCompositorFrameSinkOnImpl( | 36 void InitializeCompositorFrameSinkOnImpl( |
| 37 CompositorFrameSink* compositor_frame_sink); | 37 CompositorFrameSink* compositor_frame_sink); |
| 38 void InitializeMutatorOnImpl(std::unique_ptr<LayerTreeMutator> mutator); | 38 void InitializeMutatorOnImpl(std::unique_ptr<LayerTreeMutator> mutator); |
| 39 void MainThreadHasStoppedFlingingOnImpl(); | 39 void MainThreadHasStoppedFlingingOnImpl(); |
| 40 void SetInputThrottledUntilCommitOnImpl(bool is_throttled); | 40 void SetInputThrottledUntilCommitOnImpl(bool is_throttled); |
| 41 void SetDeferCommitsOnImpl(bool defer_commits) const; | 41 void SetDeferCommitsOnImpl(bool defer_commits) const; |
| 42 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect); | 42 void SetNeedsRedrawOnImpl(const gfx::Rect& damage_rect); |
| 43 void SetNeedsCommitOnImpl(); | 43 void SetNeedsCommitOnImpl(); |
| 44 void BeginMainFrameAbortedOnImpl( | 44 void BeginMainFrameAbortedOnImpl( |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 // Use accessors instead of this variable directly. | 142 // Use accessors instead of this variable directly. |
| 143 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; | 143 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; |
| 144 BlockedMainCommitOnly& blocked_main_commit(); | 144 BlockedMainCommitOnly& blocked_main_commit(); |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); | 146 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // namespace cc | 149 } // namespace cc |
| 150 | 150 |
| 151 #endif // CC_TREES_PROXY_IMPL_H_ | 151 #endif // CC_TREES_PROXY_IMPL_H_ |
| OLD | NEW |