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

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

Issue 401923003: Revert Removing base::TimeTicks argument to DrawLayers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase! Created 6 years, 5 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/layer_tree_host_impl_unittest.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/time/time.h" 10 #include "base/time/time.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Called by the legacy path where RenderWidget does the scheduling. 92 // Called by the legacy path where RenderWidget does the scheduling.
93 void CompositeImmediately(base::TimeTicks frame_begin_time); 93 void CompositeImmediately(base::TimeTicks frame_begin_time);
94 94
95 private: 95 private:
96 SingleThreadProxy( 96 SingleThreadProxy(
97 LayerTreeHost* layer_tree_host, 97 LayerTreeHost* layer_tree_host,
98 LayerTreeHostSingleThreadClient* client, 98 LayerTreeHostSingleThreadClient* client,
99 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); 99 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
100 100
101 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue); 101 void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
102 bool DoComposite(LayerTreeHostImpl::FrameData* frame); 102 bool DoComposite(base::TimeTicks frame_begin_time,
103 LayerTreeHostImpl::FrameData* frame);
103 void DidSwapFrame(); 104 void DidSwapFrame();
104 105
105 bool ShouldComposite() const; 106 bool ShouldComposite() const;
106 void UpdateBackgroundAnimateTicking(); 107 void UpdateBackgroundAnimateTicking();
107 108
108 // Accessed on main thread only. 109 // Accessed on main thread only.
109 LayerTreeHost* layer_tree_host_; 110 LayerTreeHost* layer_tree_host_;
110 LayerTreeHostSingleThreadClient* client_; 111 LayerTreeHostSingleThreadClient* client_;
111 112
112 // Used on the Thread, but checked on main thread during 113 // Used on the Thread, but checked on main thread during
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 private: 179 private:
179 DebugScopedSetImplThread impl_thread_; 180 DebugScopedSetImplThread impl_thread_;
180 DebugScopedSetMainThreadBlocked main_thread_blocked_; 181 DebugScopedSetMainThreadBlocked main_thread_blocked_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 183 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
183 }; 184 };
184 185
185 } // namespace cc 186 } // namespace cc
186 187
187 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 188 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698