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

Side by Side Diff: cc/layer_tree_host.cc

Issue 11827009: cc: add PaintTimeCounter to keep track of per frame paint time (Closed) Base URL: http://git.chromium.org/chromium/src.git@ring
Patch Set: resolved nits, TimeDelta throughout the API Created 7 years, 11 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/cc.gyp ('k') | cc/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/layer_tree_host.h" 5 #include "cc/layer_tree_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 syncTree->set_hud_layer(0); 291 syncTree->set_hud_layer(0);
292 292
293 syncTree->set_source_frame_number(commitNumber()); 293 syncTree->set_source_frame_number(commitNumber());
294 syncTree->set_background_color(m_backgroundColor); 294 syncTree->set_background_color(m_backgroundColor);
295 syncTree->set_has_transparent_background(m_hasTransparentBackground); 295 syncTree->set_has_transparent_background(m_hasTransparentBackground);
296 296
297 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize()); 297 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize());
298 hostImpl->setDeviceScaleFactor(deviceScaleFactor()); 298 hostImpl->setDeviceScaleFactor(deviceScaleFactor());
299 hostImpl->setPageScaleFactorAndLimits(m_pageScaleFactor, m_minPageScaleFacto r, m_maxPageScaleFactor); 299 hostImpl->setPageScaleFactorAndLimits(m_pageScaleFactor, m_minPageScaleFacto r, m_maxPageScaleFactor);
300 hostImpl->setDebugState(m_debugState); 300 hostImpl->setDebugState(m_debugState);
301 hostImpl->savePaintTime(m_renderingStats.totalPaintTime);
301 302
302 if (m_settings.calculateTopControlsPosition && m_topControlsContentLayer && hostImpl->topControlsManager()) 303 if (m_settings.calculateTopControlsPosition && m_topControlsContentLayer && hostImpl->topControlsManager())
303 hostImpl->topControlsManager()->set_content_layer_id(m_topControlsConten tLayer->id()); 304 hostImpl->topControlsManager()->set_content_layer_id(m_topControlsConten tLayer->id());
304 305
305 m_commitNumber++; 306 m_commitNumber++;
306 } 307 }
307 308
308 void LayerTreeHost::willCommit() 309 void LayerTreeHost::willCommit()
309 { 310 {
310 m_client->willCommit(); 311 m_client->willCommit();
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 875 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
875 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 876 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
876 } 877 }
877 878
878 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() 879 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture()
879 { 880 {
880 return m_proxy->capturePicture(); 881 return m_proxy->capturePicture();
881 } 882 }
882 883
883 } // namespace cc 884 } // namespace cc
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698