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_MAIN_H_ | 5 #ifndef CC_TREES_PROXY_MAIN_H_ |
| 6 #define CC_TREES_PROXY_MAIN_H_ | 6 #define CC_TREES_PROXY_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/input/top_controls_state.h" | 10 #include "cc/input/browser_controls_state.h" |
| 11 #include "cc/trees/channel_main.h" | 11 #include "cc/trees/channel_main.h" |
| 12 #include "cc/trees/proxy.h" | 12 #include "cc/trees/proxy.h" |
| 13 #include "cc/trees/proxy_common.h" | 13 #include "cc/trees/proxy_common.h" |
| 14 #include "cc/trees/remote_proto_channel.h" | 14 #include "cc/trees/remote_proto_channel.h" |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 | 17 |
| 18 class AnimationEvents; | 18 class AnimationEvents; |
| 19 class BeginFrameSource; | 19 class BeginFrameSource; |
| 20 class ChannelMain; | 20 class ChannelMain; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 void SetDeferCommits(bool defer_commits) override; | 92 void SetDeferCommits(bool defer_commits) override; |
| 93 bool CommitRequested() const override; | 93 bool CommitRequested() const override; |
| 94 bool BeginMainFrameRequested() const override; | 94 bool BeginMainFrameRequested() const override; |
| 95 void MainThreadHasStoppedFlinging() override; | 95 void MainThreadHasStoppedFlinging() override; |
| 96 void Start() override; | 96 void Start() override; |
| 97 void Stop() override; | 97 void Stop() override; |
| 98 bool SupportsImplScrolling() const override; | 98 bool SupportsImplScrolling() const override; |
| 99 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; | 99 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; |
| 100 bool MainFrameWillHappenForTesting() override; | 100 bool MainFrameWillHappenForTesting() override; |
| 101 void ReleaseCompositorFrameSink() override; | 101 void ReleaseCompositorFrameSink() override; |
| 102 void UpdateTopControlsState(TopControlsState constraints, | 102 void UpdateTopControlsState(BrowserControlsState constraints, |
|
vmpstr
2016/10/21 17:54:59
ditto
mdjones
2016/10/24 21:20:24
Done.
| |
| 103 TopControlsState current, | 103 BrowserControlsState current, |
| 104 bool animate) override; | 104 bool animate) override; |
| 105 | 105 |
| 106 // This sets the channel used by ProxyMain to communicate with ProxyImpl. | 106 // This sets the channel used by ProxyMain to communicate with ProxyImpl. |
| 107 void SetChannel(std::unique_ptr<ChannelMain> channel_main); | 107 void SetChannel(std::unique_ptr<ChannelMain> channel_main); |
| 108 | 108 |
| 109 // Returns |true| if the request was actually sent, |false| if one was | 109 // Returns |true| if the request was actually sent, |false| if one was |
| 110 // already outstanding. | 110 // already outstanding. |
| 111 bool SendCommitRequestToImplThreadIfNeeded( | 111 bool SendCommitRequestToImplThreadIfNeeded( |
| 112 CommitPipelineStage required_stage); | 112 CommitPipelineStage required_stage); |
| 113 bool IsMainThread() const; | 113 bool IsMainThread() const; |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 137 bool defer_commits_; | 137 bool defer_commits_; |
| 138 | 138 |
| 139 std::unique_ptr<ChannelMain> channel_main_; | 139 std::unique_ptr<ChannelMain> channel_main_; |
| 140 | 140 |
| 141 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 141 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
| 142 }; | 142 }; |
| 143 | 143 |
| 144 } // namespace cc | 144 } // namespace cc |
| 145 | 145 |
| 146 #endif // CC_TREES_PROXY_MAIN_H_ | 146 #endif // CC_TREES_PROXY_MAIN_H_ |
| OLD | NEW |