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

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

Issue 1192663005: cc: Measure compositor timing with finer granularity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modeTimingHistory3
Patch Set: fixes Created 5 years, 6 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 #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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 AnimateScrollbars(monotonic_time); 416 AnimateScrollbars(monotonic_time);
417 AnimateTopControls(monotonic_time); 417 AnimateTopControls(monotonic_time);
418 } 418 }
419 419
420 void LayerTreeHostImpl::PrepareTiles() { 420 void LayerTreeHostImpl::PrepareTiles() {
421 if (!tile_manager_) 421 if (!tile_manager_)
422 return; 422 return;
423 if (!tile_priorities_dirty_) 423 if (!tile_priorities_dirty_)
424 return; 424 return;
425 425
426 client_->WillPrepareTiles();
426 tile_priorities_dirty_ = false; 427 tile_priorities_dirty_ = false;
427 tile_manager_->PrepareTiles(global_tile_state_); 428 tile_manager_->PrepareTiles(global_tile_state_);
428
429 client_->DidPrepareTiles(); 429 client_->DidPrepareTiles();
430 } 430 }
431 431
432 void LayerTreeHostImpl::StartPageScaleAnimation( 432 void LayerTreeHostImpl::StartPageScaleAnimation(
433 const gfx::Vector2d& target_offset, 433 const gfx::Vector2d& target_offset,
434 bool anchor_point, 434 bool anchor_point,
435 float page_scale, 435 float page_scale,
436 base::TimeDelta duration) { 436 base::TimeDelta duration) {
437 if (!InnerViewportScrollLayer()) 437 if (!InnerViewportScrollLayer())
438 return; 438 return;
(...skipping 3067 matching lines...) Expand 10 before | Expand all | Expand 10 after
3506 new_target.SetToMin(layer_impl->MaxScrollOffset()); 3506 new_target.SetToMin(layer_impl->MaxScrollOffset());
3507 3507
3508 curve->UpdateTarget( 3508 curve->UpdateTarget(
3509 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time) 3509 animation->TrimTimeToCurrentIteration(CurrentBeginFrameArgs().frame_time)
3510 .InSecondsF(), 3510 .InSecondsF(),
3511 new_target); 3511 new_target);
3512 3512
3513 return true; 3513 return true;
3514 } 3514 }
3515 } // namespace cc 3515 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698