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

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

Issue 689503002: cc: Use commit to activation time in repaint HUD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused var Created 6 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
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | no next file » | 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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 client_->RenewTreePriority(); 1864 client_->RenewTreePriority();
1865 1865
1866 client_->OnCanDrawStateChanged(CanDraw()); 1866 client_->OnCanDrawStateChanged(CanDraw());
1867 client_->DidActivateSyncTree(); 1867 client_->DidActivateSyncTree();
1868 if (!tree_activation_callback_.is_null()) 1868 if (!tree_activation_callback_.is_null())
1869 tree_activation_callback_.Run(); 1869 tree_activation_callback_.Run();
1870 1870
1871 if (debug_state_.continuous_painting) { 1871 if (debug_state_.continuous_painting) {
1872 const RenderingStats& stats = 1872 const RenderingStats& stats =
1873 rendering_stats_instrumentation_->GetRenderingStats(); 1873 rendering_stats_instrumentation_->GetRenderingStats();
1874 paint_time_counter_->SavePaintTime(stats.main_stats.paint_time + 1874 paint_time_counter_->SavePaintTime(
brianderson 2014/10/29 00:24:15 What is main_stats.paint_time?
ernstm 2014/10/29 17:21:19 paint_time was a pre-impl-side painting metric, or
1875 stats.main_stats.record_time + 1875 stats.impl_stats.commit_to_activate_duration.GetLastTimeDelta());
1876 stats.impl_stats.rasterize_time);
1877 } 1876 }
1878 1877
1879 if (time_source_client_adapter_ && time_source_client_adapter_->Active()) 1878 if (time_source_client_adapter_ && time_source_client_adapter_->Active())
1880 DCHECK(active_tree_->root_layer()); 1879 DCHECK(active_tree_->root_layer());
1881 1880
1882 scoped_ptr<PageScaleAnimation> page_scale_animation = 1881 scoped_ptr<PageScaleAnimation> page_scale_animation =
1883 active_tree_->TakePageScaleAnimation(); 1882 active_tree_->TakePageScaleAnimation();
1884 if (page_scale_animation) { 1883 if (page_scale_animation) {
1885 page_scale_animation_ = page_scale_animation.Pass(); 1884 page_scale_animation_ = page_scale_animation.Pass();
1886 SetNeedsAnimate(); 1885 SetNeedsAnimate();
(...skipping 1593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3480 } 3479 }
3481 3480
3482 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3481 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3483 std::vector<PictureLayerImpl*>::iterator it = 3482 std::vector<PictureLayerImpl*>::iterator it =
3484 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3483 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3485 DCHECK(it != picture_layers_.end()); 3484 DCHECK(it != picture_layers_.end());
3486 picture_layers_.erase(it); 3485 picture_layers_.erase(it);
3487 } 3486 }
3488 3487
3489 } // namespace cc 3488 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698