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 23 matching lines...) Expand all Loading... |
34 TaskRunnerProvider* task_runner_provider_); | 34 TaskRunnerProvider* task_runner_provider_); |
35 ~SingleThreadProxy() override; | 35 ~SingleThreadProxy() override; |
36 | 36 |
37 // Proxy implementation | 37 // Proxy implementation |
38 void FinishAllRendering() override; | 38 void FinishAllRendering() override; |
39 bool IsStarted() const override; | 39 bool IsStarted() const override; |
40 bool CommitToActiveTree() const override; | 40 bool CommitToActiveTree() const override; |
41 void SetOutputSurface(OutputSurface* output_surface) override; | 41 void SetOutputSurface(OutputSurface* output_surface) override; |
42 void ReleaseOutputSurface() override; | 42 void ReleaseOutputSurface() override; |
43 void SetVisible(bool visible) override; | 43 void SetVisible(bool visible) override; |
44 void SetThrottleFrameProduction(bool throttle) override; | |
45 const RendererCapabilities& GetRendererCapabilities() const override; | 44 const RendererCapabilities& GetRendererCapabilities() const override; |
46 void SetNeedsAnimate() override; | 45 void SetNeedsAnimate() override; |
47 void SetNeedsUpdateLayers() override; | 46 void SetNeedsUpdateLayers() override; |
48 void SetNeedsCommit() override; | 47 void SetNeedsCommit() override; |
49 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 48 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
50 void SetNextCommitWaitsForActivation() override; | 49 void SetNextCommitWaitsForActivation() override; |
51 void NotifyInputThrottledUntilCommit() override {} | 50 void NotifyInputThrottledUntilCommit() override {} |
52 void SetDeferCommits(bool defer_commits) override; | 51 void SetDeferCommits(bool defer_commits) override; |
53 bool CommitRequested() const override; | 52 bool CommitRequested() const override; |
54 bool BeginMainFrameRequested() const override; | 53 bool BeginMainFrameRequested() const override; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 private: | 232 private: |
234 DebugScopedSetImplThread impl_thread_; | 233 DebugScopedSetImplThread impl_thread_; |
235 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 234 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
236 | 235 |
237 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 236 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
238 }; | 237 }; |
239 | 238 |
240 } // namespace cc | 239 } // namespace cc |
241 | 240 |
242 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 241 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |