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

Side by Side Diff: cc/layer_tree_host.cc

Issue 12209022: cc: add rasterize time to continuous painting graph data in impl-side-painting (Closed) Base URL: http://git.chromium.org/chromium/src.git@raster
Patch Set: Created 7 years, 10 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 | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.cc » ('J')
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 if (!m_settings.implSidePainting) { 316 if (!m_settings.implSidePainting) {
317 // If we're not in impl-side painting, the tree is immediately 317 // If we're not in impl-side painting, the tree is immediately
318 // considered active. 318 // considered active.
319 syncTree->DidBecomeActive(); 319 syncTree->DidBecomeActive();
320 } 320 }
321 321
322 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize()); 322 hostImpl->setViewportSize(layoutViewportSize(), deviceViewportSize());
323 hostImpl->setDeviceScaleFactor(deviceScaleFactor()); 323 hostImpl->setDeviceScaleFactor(deviceScaleFactor());
324 hostImpl->setDebugState(m_debugState); 324 hostImpl->setDebugState(m_debugState);
325 hostImpl->savePaintTime(m_renderingStats.totalPaintTime); 325
326 if (m_debugState.continuousPainting)
nduca 2013/02/05 23:09:35 && !implSidePainting
327 hostImpl->savePaintTime(m_renderingStats.totalPaintTime);
326 328
327 if (newImplTreeHasNoEvictedResources) { 329 if (newImplTreeHasNoEvictedResources) {
328 if (syncTree->ContentsTexturesPurged()) 330 if (syncTree->ContentsTexturesPurged())
329 syncTree->ResetContentsTexturesPurged(); 331 syncTree->ResetContentsTexturesPurged();
330 } 332 }
331 333
332 m_commitNumber++; 334 m_commitNumber++;
333 } 335 }
334 336
335 void LayerTreeHost::willCommit() 337 void LayerTreeHost::willCommit()
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 870 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
869 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 871 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
870 } 872 }
871 873
872 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() 874 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture()
873 { 875 {
874 return m_proxy->capturePicture(); 876 return m_proxy->capturePicture();
875 } 877 }
876 878
877 } // namespace cc 879 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698