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

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

Issue 595973002: Moving background animation ticking from LayerTreeHostImpl into the Scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler-timesource-refactor
Patch Set: Small fixes. Created 6 years, 1 month 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/layer_tree_settings.cc ('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"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void CompositeImmediately(base::TimeTicks frame_begin_time); 111 void CompositeImmediately(base::TimeTicks frame_begin_time);
112 112
113 private: 113 private:
114 SingleThreadProxy( 114 SingleThreadProxy(
115 LayerTreeHost* layer_tree_host, 115 LayerTreeHost* layer_tree_host,
116 LayerTreeHostSingleThreadClient* client, 116 LayerTreeHostSingleThreadClient* client,
117 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); 117 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
118 118
119 void BeginMainFrame(); 119 void BeginMainFrame();
120 void BeginMainFrameAbortedOnImplThread(); 120 void BeginMainFrameAbortedOnImplThread();
121 void DoAnimate();
121 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); 122 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args);
122 void DoCommit(); 123 void DoCommit();
123 DrawResult DoComposite(base::TimeTicks frame_begin_time, 124 DrawResult DoComposite(base::TimeTicks frame_begin_time,
124 LayerTreeHostImpl::FrameData* frame); 125 LayerTreeHostImpl::FrameData* frame);
125 void DoSwap(); 126 void DoSwap();
126 void DidCommitAndDrawFrame(); 127 void DidCommitAndDrawFrame();
127 void CommitComplete(); 128 void CommitComplete();
128 129
129 bool ShouldComposite() const; 130 bool ShouldComposite() const;
130 void UpdateBackgroundAnimateTicking();
131 void ScheduleRequestNewOutputSurface(); 131 void ScheduleRequestNewOutputSurface();
132 132
133 // Accessed on main thread only. 133 // Accessed on main thread only.
134 LayerTreeHost* layer_tree_host_; 134 LayerTreeHost* layer_tree_host_;
135 LayerTreeHostSingleThreadClient* client_; 135 LayerTreeHostSingleThreadClient* client_;
136 136
137 // Used on the Thread, but checked on main thread during 137 // Used on the Thread, but checked on main thread during
138 // initialization/shutdown. 138 // initialization/shutdown.
139 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_; 139 scoped_ptr<LayerTreeHostImpl> layer_tree_host_impl_;
140 RendererCapabilities renderer_capabilities_for_main_thread_; 140 RendererCapabilities renderer_capabilities_for_main_thread_;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 private: 222 private:
223 DebugScopedSetImplThread impl_thread_; 223 DebugScopedSetImplThread impl_thread_;
224 DebugScopedSetMainThreadBlocked main_thread_blocked_; 224 DebugScopedSetMainThreadBlocked main_thread_blocked_;
225 225
226 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 226 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
227 }; 227 };
228 228
229 } // namespace cc 229 } // namespace cc
230 230
231 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 231 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698