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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 52663003: Remove all fling related stuff from the renderer assuming that browser side Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('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 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void LayerTreeHost::DidBeginMainFrame() { 264 void LayerTreeHost::DidBeginMainFrame() {
265 client_->DidBeginMainFrame(); 265 client_->DidBeginMainFrame();
266 } 266 }
267 267
268 void LayerTreeHost::UpdateClientAnimations(base::TimeTicks frame_begin_time) { 268 void LayerTreeHost::UpdateClientAnimations(base::TimeTicks frame_begin_time) {
269 animating_ = true; 269 animating_ = true;
270 client_->Animate((frame_begin_time - base::TimeTicks()).InSecondsF()); 270 client_->Animate((frame_begin_time - base::TimeTicks()).InSecondsF());
271 animating_ = false; 271 animating_ = false;
272 } 272 }
273 273
274 void LayerTreeHost::DidStopFlinging() {
275 proxy_->MainThreadHasStoppedFlinging();
276 }
277
278 void LayerTreeHost::Layout() { 274 void LayerTreeHost::Layout() {
279 client_->Layout(); 275 client_->Layout();
280 } 276 }
281 277
282 void LayerTreeHost::BeginCommitOnImplThread(LayerTreeHostImpl* host_impl) { 278 void LayerTreeHost::BeginCommitOnImplThread(LayerTreeHostImpl* host_impl) {
283 DCHECK(proxy_->IsImplThread()); 279 DCHECK(proxy_->IsImplThread());
284 TRACE_EVENT0("cc", "LayerTreeHost::CommitTo"); 280 TRACE_EVENT0("cc", "LayerTreeHost::CommitTo");
285 } 281 }
286 282
287 // This function commits the LayerTreeHost to an impl tree. When modifying 283 // This function commits the LayerTreeHost to an impl tree. When modifying
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 1280
1285 bool LayerTreeHost::ScheduleMicroBenchmark( 1281 bool LayerTreeHost::ScheduleMicroBenchmark(
1286 const std::string& benchmark_name, 1282 const std::string& benchmark_name,
1287 scoped_ptr<base::Value> value, 1283 scoped_ptr<base::Value> value,
1288 const MicroBenchmark::DoneCallback& callback) { 1284 const MicroBenchmark::DoneCallback& callback) {
1289 return micro_benchmark_controller_.ScheduleRun( 1285 return micro_benchmark_controller_.ScheduleRun(
1290 benchmark_name, value.Pass(), callback); 1286 benchmark_name, value.Pass(), callback);
1291 } 1287 }
1292 1288
1293 } // namespace cc 1289 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698