| 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/browser_controls_state.h" | 10 #include "cc/input/browser_controls_state.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void MainThreadHasStoppedFlinging() override; | 79 void MainThreadHasStoppedFlinging() override; |
| 80 void Start() override; | 80 void Start() override; |
| 81 void Stop() override; | 81 void Stop() override; |
| 82 bool SupportsImplScrolling() const override; | 82 bool SupportsImplScrolling() const override; |
| 83 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; | 83 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; |
| 84 bool MainFrameWillHappenForTesting() override; | 84 bool MainFrameWillHappenForTesting() override; |
| 85 void ReleaseCompositorFrameSink() override; | 85 void ReleaseCompositorFrameSink() override; |
| 86 void UpdateBrowserControlsState(BrowserControlsState constraints, | 86 void UpdateBrowserControlsState(BrowserControlsState constraints, |
| 87 BrowserControlsState current, | 87 BrowserControlsState current, |
| 88 bool animate) override; | 88 bool animate) override; |
| 89 void ResetTrees() override; |
| 89 | 90 |
| 90 // Returns |true| if the request was actually sent, |false| if one was | 91 // Returns |true| if the request was actually sent, |false| if one was |
| 91 // already outstanding. | 92 // already outstanding. |
| 92 bool SendCommitRequestToImplThreadIfNeeded( | 93 bool SendCommitRequestToImplThreadIfNeeded( |
| 93 CommitPipelineStage required_stage); | 94 CommitPipelineStage required_stage); |
| 94 bool IsMainThread() const; | 95 bool IsMainThread() const; |
| 95 bool IsImplThread() const; | 96 bool IsImplThread() const; |
| 96 base::SingleThreadTaskRunner* ImplThreadTaskRunner(); | 97 base::SingleThreadTaskRunner* ImplThreadTaskRunner(); |
| 97 | 98 |
| 98 void InitializeOnImplThread(CompletionEvent* completion_event); | 99 void InitializeOnImplThread(CompletionEvent* completion_event); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 std::unique_ptr<ProxyImpl> proxy_impl_; | 131 std::unique_ptr<ProxyImpl> proxy_impl_; |
| 131 | 132 |
| 132 base::WeakPtrFactory<ProxyMain> weak_factory_; | 133 base::WeakPtrFactory<ProxyMain> weak_factory_; |
| 133 | 134 |
| 134 DISALLOW_COPY_AND_ASSIGN(ProxyMain); | 135 DISALLOW_COPY_AND_ASSIGN(ProxyMain); |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 } // namespace cc | 138 } // namespace cc |
| 138 | 139 |
| 139 #endif // CC_TREES_PROXY_MAIN_H_ | 140 #endif // CC_TREES_PROXY_MAIN_H_ |
| OLD | NEW |