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

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

Issue 1297363004: cc: Move animate steps from proxies to LayerTreeHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moveanimatecodetolthi: . Created 5 years, 4 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
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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 protected: 121 protected:
122 SingleThreadProxy( 122 SingleThreadProxy(
123 LayerTreeHost* layer_tree_host, 123 LayerTreeHost* layer_tree_host,
124 LayerTreeHostSingleThreadClient* client, 124 LayerTreeHostSingleThreadClient* client,
125 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 125 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
126 scoped_ptr<BeginFrameSource> external_begin_frame_source); 126 scoped_ptr<BeginFrameSource> external_begin_frame_source);
127 127
128 private: 128 private:
129 void BeginMainFrame(const BeginFrameArgs& begin_frame_args); 129 void BeginMainFrame(const BeginFrameArgs& begin_frame_args);
130 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason); 130 void BeginMainFrameAbortedOnImplThread(CommitEarlyOutReason reason);
131 void DoAnimate();
132 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args); 131 void DoBeginMainFrame(const BeginFrameArgs& begin_frame_args);
133 void DoCommit(); 132 void DoCommit();
134 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame); 133 DrawResult DoComposite(LayerTreeHostImpl::FrameData* frame);
135 void DoSwap(); 134 void DoSwap();
136 void DidCommitAndDrawFrame(); 135 void DidCommitAndDrawFrame();
137 void CommitComplete(); 136 void CommitComplete();
138 137
139 bool ShouldComposite() const; 138 bool ShouldComposite() const;
140 void ScheduleRequestNewOutputSurface(); 139 void ScheduleRequestNewOutputSurface();
141 140
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698