OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 49 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
50 void SetNextCommitWaitsForActivation() override; | 50 void SetNextCommitWaitsForActivation() override; |
51 void NotifyInputThrottledUntilCommit() override {} | 51 void NotifyInputThrottledUntilCommit() override {} |
52 void SetDeferCommits(bool defer_commits) override; | 52 void SetDeferCommits(bool defer_commits) override; |
53 bool CommitRequested() const override; | 53 bool CommitRequested() const override; |
54 bool BeginMainFrameRequested() const override; | 54 bool BeginMainFrameRequested() const override; |
55 void MainThreadHasStoppedFlinging() override {} | 55 void MainThreadHasStoppedFlinging() override {} |
56 void Start( | 56 void Start( |
57 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; | 57 std::unique_ptr<BeginFrameSource> external_begin_frame_source) override; |
58 void Stop() override; | 58 void Stop() override; |
| 59 void SetMutator(std::unique_ptr<LayerTreeMutator> mutator) override; |
59 bool SupportsImplScrolling() const override; | 60 bool SupportsImplScrolling() const override; |
60 bool MainFrameWillHappenForTesting() override; | 61 bool MainFrameWillHappenForTesting() override; |
61 void UpdateTopControlsState(TopControlsState constraints, | 62 void UpdateTopControlsState(TopControlsState constraints, |
62 TopControlsState current, | 63 TopControlsState current, |
63 bool animate) override; | 64 bool animate) override; |
64 | 65 |
65 // SchedulerClient implementation | 66 // SchedulerClient implementation |
66 void WillBeginImplFrame(const BeginFrameArgs& args) override; | 67 void WillBeginImplFrame(const BeginFrameArgs& args) override; |
67 void DidFinishImplFrame() override; | 68 void DidFinishImplFrame() override; |
68 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 69 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 private: | 242 private: |
242 DebugScopedSetImplThread impl_thread_; | 243 DebugScopedSetImplThread impl_thread_; |
243 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 244 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
244 | 245 |
245 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 246 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
246 }; | 247 }; |
247 | 248 |
248 } // namespace cc | 249 } // namespace cc |
249 | 250 |
250 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 251 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |