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

Side by Side Diff: cc/CCLayerTreeHost.cpp

Issue 10914304: Add average commit time to perf tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix bug with texture_upload_benchmark.py Created 8 years, 2 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/CCLayerTreeHost.h ('k') | cc/CCLayerTreeHostImpl.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 "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerTreeHost.h" 7 #include "CCLayerTreeHost.h"
8 8
9 #include "CCFontAtlas.h" 9 #include "CCFontAtlas.h"
10 #include "CCGraphicsContext.h" 10 #include "CCGraphicsContext.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 return ret; 339 return ret;
340 } 340 }
341 341
342 void CCLayerTreeHost::finishAllRendering() 342 void CCLayerTreeHost::finishAllRendering()
343 { 343 {
344 if (!m_rendererInitialized) 344 if (!m_rendererInitialized)
345 return; 345 return;
346 m_proxy->finishAllRendering(); 346 m_proxy->finishAllRendering();
347 } 347 }
348 348
349 void CCLayerTreeHost::renderingStats(CCRenderingStats& stats) const 349 void CCLayerTreeHost::renderingStats(CCRenderingStats* stats) const
350 { 350 {
351 stats = m_renderingStats; 351 *stats = m_renderingStats;
352 m_proxy->implSideRenderingStats(stats); 352 m_proxy->renderingStats(stats);
353 } 353 }
354 354
355 const RendererCapabilities& CCLayerTreeHost::rendererCapabilities() const 355 const RendererCapabilities& CCLayerTreeHost::rendererCapabilities() const
356 { 356 {
357 return m_proxy->rendererCapabilities(); 357 return m_proxy->rendererCapabilities();
358 } 358 }
359 359
360 void CCLayerTreeHost::setNeedsAnimate() 360 void CCLayerTreeHost::setNeedsAnimate()
361 { 361 {
362 ASSERT(CCProxy::hasImplThread()); 362 ASSERT(CCProxy::hasImplThread());
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 else 854 else
855 layer->notifyAnimationFinished(wallClockTime); 855 layer->notifyAnimationFinished(wallClockTime);
856 } 856 }
857 } 857 }
858 858
859 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 859 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
860 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 860 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
861 } 861 }
862 862
863 } // namespace cc 863 } // namespace cc
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHost.h ('k') | cc/CCLayerTreeHostImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698