Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: cc/trees/single_thread_proxy.h

Issue 1194743002: cc: Remove ResourceUpdateQueue and ResourceUpdateController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resourcequeue: header Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "cc/animation/animation_events.h" 12 #include "cc/animation/animation_events.h"
13 #include "cc/output/begin_frame_args.h" 13 #include "cc/output/begin_frame_args.h"
14 #include "cc/scheduler/scheduler.h" 14 #include "cc/scheduler/scheduler.h"
15 #include "cc/trees/blocking_task_runner.h" 15 #include "cc/trees/blocking_task_runner.h"
16 #include "cc/trees/layer_tree_host_impl.h" 16 #include "cc/trees/layer_tree_host_impl.h"
17 #include "cc/trees/proxy.h" 17 #include "cc/trees/proxy.h"
18 #include "cc/trees/proxy_timing_history.h" 18 #include "cc/trees/proxy_timing_history.h"
19 19
20 namespace cc { 20 namespace cc {
21 21
22 class BeginFrameSource; 22 class BeginFrameSource;
23 class ContextProvider; 23 class ContextProvider;
24 class LayerTreeHost; 24 class LayerTreeHost;
25 class LayerTreeHostSingleThreadClient; 25 class LayerTreeHostSingleThreadClient;
26 class ResourceUpdateQueue;
27 26
28 class CC_EXPORT SingleThreadProxy : public Proxy, 27 class CC_EXPORT SingleThreadProxy : public Proxy,
29 NON_EXPORTED_BASE(LayerTreeHostImplClient), 28 NON_EXPORTED_BASE(LayerTreeHostImplClient),
30 SchedulerClient { 29 SchedulerClient {
31 public: 30 public:
32 static scoped_ptr<Proxy> Create( 31 static scoped_ptr<Proxy> Create(
33 LayerTreeHost* layer_tree_host, 32 LayerTreeHost* layer_tree_host,
34 LayerTreeHostSingleThreadClient* client, 33 LayerTreeHostSingleThreadClient* client,
35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 34 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
36 scoped_ptr<BeginFrameSource> external_begin_frame_source); 35 scoped_ptr<BeginFrameSource> external_begin_frame_source);
(...skipping 13 matching lines...) Expand all
50 void SetNeedsCommit() override; 49 void SetNeedsCommit() override;
51 void SetNeedsRedraw(const gfx::Rect& damage_rect) override; 50 void SetNeedsRedraw(const gfx::Rect& damage_rect) override;
52 void SetNextCommitWaitsForActivation() override; 51 void SetNextCommitWaitsForActivation() override;
53 void NotifyInputThrottledUntilCommit() override {} 52 void NotifyInputThrottledUntilCommit() override {}
54 void SetDeferCommits(bool defer_commits) override; 53 void SetDeferCommits(bool defer_commits) override;
55 bool CommitRequested() const override; 54 bool CommitRequested() const override;
56 bool BeginMainFrameRequested() const override; 55 bool BeginMainFrameRequested() const override;
57 void MainThreadHasStoppedFlinging() override {} 56 void MainThreadHasStoppedFlinging() override {}
58 void Start() override; 57 void Start() override;
59 void Stop() override; 58 void Stop() override;
60 size_t MaxPartialTextureUpdates() const override;
61 void ForceSerializeOnSwapBuffers() override; 59 void ForceSerializeOnSwapBuffers() override;
62 bool SupportsImplScrolling() const override; 60 bool SupportsImplScrolling() const override;
63 bool MainFrameWillHappenForTesting() override; 61 bool MainFrameWillHappenForTesting() override;
64 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override; 62 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) override;
65 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override; 63 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval) override;
66 64
67 // SchedulerClient implementation 65 // SchedulerClient implementation
68 void WillBeginImplFrame(const BeginFrameArgs& args) override; 66 void WillBeginImplFrame(const BeginFrameArgs& args) override;
69 void DidFinishImplFrame() override; 67 void DidFinishImplFrame() override;
70 void ScheduledActionSendBeginMainFrame() override; 68 void ScheduledActionSendBeginMainFrame() override;
71 DrawResult ScheduledActionDrawAndSwapIfPossible() override; 69 DrawResult ScheduledActionDrawAndSwapIfPossible() override;
72 DrawResult ScheduledActionDrawAndSwapForced() override; 70 DrawResult ScheduledActionDrawAndSwapForced() override;
73 void ScheduledActionCommit() override; 71 void ScheduledActionCommit() override;
74 void ScheduledActionAnimate() override; 72 void ScheduledActionAnimate() override;
75 void ScheduledActionActivateSyncTree() override; 73 void ScheduledActionActivateSyncTree() override;
76 void ScheduledActionBeginOutputSurfaceCreation() override; 74 void ScheduledActionBeginOutputSurfaceCreation() override;
77 void ScheduledActionPrepareTiles() override; 75 void ScheduledActionPrepareTiles() override;
78 void ScheduledActionInvalidateOutputSurface() override; 76 void ScheduledActionInvalidateOutputSurface() override;
79 void DidAnticipatedDrawTimeChange(base::TimeTicks time) override;
80 base::TimeDelta DrawDurationEstimate() override; 77 base::TimeDelta DrawDurationEstimate() override;
81 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override; 78 base::TimeDelta BeginMainFrameToCommitDurationEstimate() override;
82 base::TimeDelta CommitToActivateDurationEstimate() override; 79 base::TimeDelta CommitToActivateDurationEstimate() override;
83 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; 80 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
84 void SendBeginMainFrameNotExpectedSoon() override; 81 void SendBeginMainFrameNotExpectedSoon() override;
85 82
86 // LayerTreeHostImplClient implementation 83 // LayerTreeHostImplClient implementation
87 void UpdateRendererCapabilitiesOnImplThread() override; 84 void UpdateRendererCapabilitiesOnImplThread() override;
88 void DidLoseOutputSurfaceOnImplThread() override; 85 void DidLoseOutputSurfaceOnImplThread() override;
89 void CommitVSyncParameters(base::TimeTicks timebase, 86 void CommitVSyncParameters(base::TimeTicks timebase,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Used on the Thread, but checked on main thread during 148 // Used on the Thread, but checked on main thread during
152 // initialization/shutdown. 149 // initialization/shutdown.
153 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 150 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
154 RendererCapabilities renderer_capabilities_for_main_thread_; 151 RendererCapabilities renderer_capabilities_for_main_thread_;
155 152
156 // Accessed from both threads. 153 // Accessed from both threads.
157 scoped_ptr<Scheduler> scheduler_on_impl_thread_; 154 scoped_ptr<Scheduler> scheduler_on_impl_thread_;
158 ProxyTimingHistory timing_history_; 155 ProxyTimingHistory timing_history_;
159 156
160 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_; 157 scoped_ptr<BlockingTaskRunner::CapturePostTasks> commit_blocking_task_runner_;
161 scoped_ptr<ResourceUpdateQueue> queue_for_commit_;
162 bool next_frame_is_newly_committed_frame_; 158 bool next_frame_is_newly_committed_frame_;
163 159
164 #if DCHECK_IS_ON() 160 #if DCHECK_IS_ON()
165 bool inside_impl_frame_; 161 bool inside_impl_frame_;
166 #endif 162 #endif
167 bool inside_draw_; 163 bool inside_draw_;
168 bool defer_commits_; 164 bool defer_commits_;
169 bool animate_requested_; 165 bool animate_requested_;
170 bool commit_requested_; 166 bool commit_requested_;
171 bool inside_synchronous_composite_; 167 bool inside_synchronous_composite_;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 private: 235 private:
240 DebugScopedSetImplThread impl_thread_; 236 DebugScopedSetImplThread impl_thread_;
241 DebugScopedSetMainThreadBlocked main_thread_blocked_; 237 DebugScopedSetMainThreadBlocked main_thread_blocked_;
242 238
243 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 239 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
244 }; 240 };
245 241
246 } // namespace cc 242 } // namespace cc
247 243
248 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 244 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698