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

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: don't reset timing history 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 AnimateScrollbars(monotonic_time); 425 AnimateScrollbars(monotonic_time);
426 AnimateTopControls(monotonic_time); 426 AnimateTopControls(monotonic_time);
427 } 427 }
428 428
429 void LayerTreeHostImpl::PrepareTiles() { 429 void LayerTreeHostImpl::PrepareTiles() {
430 if (!tile_manager_) 430 if (!tile_manager_)
431 return; 431 return;
432 if (!tile_priorities_dirty_) 432 if (!tile_priorities_dirty_)
433 return; 433 return;
434 434
435 client_->WillPrepareTiles();
435 tile_priorities_dirty_ = false; 436 tile_priorities_dirty_ = false;
436 tile_manager_->PrepareTiles(global_tile_state_); 437 tile_manager_->PrepareTiles(global_tile_state_);
437
438 client_->DidPrepareTiles(); 438 client_->DidPrepareTiles();
439 } 439 }
440 440
441 void LayerTreeHostImpl::StartPageScaleAnimation( 441 void LayerTreeHostImpl::StartPageScaleAnimation(
442 const gfx::Vector2d& target_offset, 442 const gfx::Vector2d& target_offset,
443 bool anchor_point, 443 bool anchor_point,
444 float page_scale, 444 float page_scale,
445 base::TimeDelta duration) { 445 base::TimeDelta duration) {
446 if (!InnerViewportScrollLayer()) 446 if (!InnerViewportScrollLayer())
447 return; 447 return;
(...skipping 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after
3586 const gfx::ScrollOffset& scroll_offset) { 3586 const gfx::ScrollOffset& scroll_offset) {
3587 if (tree_type == LayerTreeType::ACTIVE) { 3587 if (tree_type == LayerTreeType::ACTIVE) {
3588 SetTreeLayerScrollOffsetMutated(layer_id, active_tree(), scroll_offset); 3588 SetTreeLayerScrollOffsetMutated(layer_id, active_tree(), scroll_offset);
3589 } else { 3589 } else {
3590 SetTreeLayerScrollOffsetMutated(layer_id, pending_tree(), scroll_offset); 3590 SetTreeLayerScrollOffsetMutated(layer_id, pending_tree(), scroll_offset);
3591 SetTreeLayerScrollOffsetMutated(layer_id, recycle_tree(), scroll_offset); 3591 SetTreeLayerScrollOffsetMutated(layer_id, recycle_tree(), scroll_offset);
3592 } 3592 }
3593 } 3593 }
3594 3594
3595 } // namespace cc 3595 } // 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