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

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

Issue 1213653005: Revert of cc: Measure compositor timing with finer granularity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modeTimingHistory3
Patch Set: Created 5 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.h ('k') | cc/trees/layer_tree_host_impl_unittest.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 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 AnimateScrollbars(monotonic_time); 409 AnimateScrollbars(monotonic_time);
410 AnimateTopControls(monotonic_time); 410 AnimateTopControls(monotonic_time);
411 } 411 }
412 412
413 void LayerTreeHostImpl::PrepareTiles() { 413 void LayerTreeHostImpl::PrepareTiles() {
414 if (!tile_manager_) 414 if (!tile_manager_)
415 return; 415 return;
416 if (!tile_priorities_dirty_) 416 if (!tile_priorities_dirty_)
417 return; 417 return;
418 418
419 client_->WillPrepareTiles();
420 tile_priorities_dirty_ = false; 419 tile_priorities_dirty_ = false;
421 tile_manager_->PrepareTiles(global_tile_state_); 420 tile_manager_->PrepareTiles(global_tile_state_);
421
422 client_->DidPrepareTiles(); 422 client_->DidPrepareTiles();
423 } 423 }
424 424
425 void LayerTreeHostImpl::StartPageScaleAnimation( 425 void LayerTreeHostImpl::StartPageScaleAnimation(
426 const gfx::Vector2d& target_offset, 426 const gfx::Vector2d& target_offset,
427 bool anchor_point, 427 bool anchor_point,
428 float page_scale, 428 float page_scale,
429 base::TimeDelta duration) { 429 base::TimeDelta duration) {
430 if (!InnerViewportScrollLayer()) 430 if (!InnerViewportScrollLayer())
431 return; 431 return;
(...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after
3443 new_target.SetToMin(layer_impl->MaxScrollOffset()); 3443 new_target.SetToMin(layer_impl->MaxScrollOffset());
3444 3444
3445 curve->UpdateTarget( 3445 curve->UpdateTarget(
3446 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) 3446 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time)
3447 .InSecondsF(), 3447 .InSecondsF(),
3448 new_target); 3448 new_target);
3449 3449
3450 return true; 3450 return true;
3451 } 3451 }
3452 } // namespace cc 3452 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698