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 20 matching lines...) Expand all Loading... |
31 static scoped_ptr<Proxy> Create( | 31 static scoped_ptr<Proxy> Create( |
32 LayerTreeHost* layer_tree_host, | 32 LayerTreeHost* layer_tree_host, |
33 LayerTreeHostSingleThreadClient* client, | 33 LayerTreeHostSingleThreadClient* client, |
34 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 34 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
35 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 35 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
36 ~SingleThreadProxy() override; | 36 ~SingleThreadProxy() override; |
37 | 37 |
38 // Proxy implementation | 38 // Proxy implementation |
39 void FinishAllRendering() override; | 39 void FinishAllRendering() override; |
40 bool IsStarted() const override; | 40 bool IsStarted() const override; |
| 41 bool CommitToActiveTree() const override; |
41 void SetOutputSurface(scoped_ptr<OutputSurface>) override; | 42 void SetOutputSurface(scoped_ptr<OutputSurface>) override; |
42 void SetLayerTreeHostClientReady() override; | 43 void SetLayerTreeHostClientReady() override; |
43 void SetVisible(bool visible) override; | 44 void SetVisible(bool visible) override; |
44 void SetThrottleFrameProduction(bool throttle) override; | 45 void SetThrottleFrameProduction(bool throttle) override; |
45 const RendererCapabilities& GetRendererCapabilities() const override; | 46 const RendererCapabilities& GetRendererCapabilities() const override; |
46 void SetNeedsAnimate() override; | 47 void SetNeedsAnimate() override; |
47 void SetNeedsUpdateLayers() override; | 48 void SetNeedsUpdateLayers() override; |
48 void SetNeedsCommit() override; | 49 void SetNeedsCommit() override; |
49 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; | 50 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; |
50 void SetNextCommitWaitsForActivation() override; | 51 void SetNextCommitWaitsForActivation() override; |
51 void NotifyInputThrottledUntilCommit() override {} | 52 void NotifyInputThrottledUntilCommit() override {} |
52 void SetDeferCommits(bool defer_commits) override; | 53 void SetDeferCommits(bool defer_commits) override; |
53 bool CommitRequested() const override; | 54 bool CommitRequested() const override; |
54 bool BeginMainFrameRequested() const override; | 55 bool BeginMainFrameRequested() const override; |
55 void MainThreadHasStoppedFlinging() override {} | 56 void MainThreadHasStoppedFlinging() override {} |
56 void Start() override; | 57 void Start() override; |
57 void Stop() override; | 58 void Stop() override; |
58 size_t MaxPartialTextureUpdates() const override; | 59 size_t MaxPartialTextureUpdates() const override; |
59 void ForceSerializeOnSwapBuffers() override; | 60 void ForceSerializeOnSwapBuffers() override; |
60 bool SupportsImplScrolling() const override; | 61 bool SupportsImplScrolling() const override; |
61 void AsValueInto(base::debug::TracedValue* state) const override; | 62 void AsValueInto(base::trace_event::TracedValue* state) const override; |
62 bool MainFrameWillHappenForTesting() override; | 63 bool MainFrameWillHappenForTesting() override; |
63 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; | 64 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) 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 ScheduledActionSendBeginMainFrame() override; | 68 void ScheduledActionSendBeginMainFrame() override; |
68 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 69 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
69 DrawResult ScheduledActionDrawAndSwapForced() override; | 70 DrawResult ScheduledActionDrawAndSwapForced() override; |
70 void ScheduledActionCommit() override; | 71 void ScheduledActionCommit() override; |
71 void ScheduledActionAnimate() override; | 72 void ScheduledActionAnimate() override; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 private: | 230 private: |
230 DebugScopedSetImplThread impl_thread_; | 231 DebugScopedSetImplThread impl_thread_; |
231 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 232 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
232 | 233 |
233 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 234 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
234 }; | 235 }; |
235 | 236 |
236 } // namespace cc | 237 } // namespace cc |
237 | 238 |
238 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 239 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |