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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 12728002: cc: Chromify the OverdrawMetrics class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/occlusion_tracker.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/layer_tree_host_impl.h" 5 #include "cc/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 539 }
540 #endif 540 #endif
541 DCHECK(frame.renderPasses.back()->output_rect.origin().IsOrigin()); 541 DCHECK(frame.renderPasses.back()->output_rect.origin().IsOrigin());
542 542
543 if (!activeTree()->has_transparent_background()) { 543 if (!activeTree()->has_transparent_background()) {
544 frame.renderPasses.back()->has_transparent_background = false; 544 frame.renderPasses.back()->has_transparent_background = false;
545 appendQuadsToFillScreen(frame.renderPasses.back(), rootLayer(), activeTr ee()->background_color(), occlusionTracker); 545 appendQuadsToFillScreen(frame.renderPasses.back(), rootLayer(), activeTr ee()->background_color(), occlusionTracker);
546 } 546 }
547 547
548 if (drawFrame) 548 if (drawFrame)
549 occlusionTracker.OverdrawMetrics().recordMetrics(this); 549 occlusionTracker.OverdrawMetrics().RecordMetrics(this);
550 550
551 removeRenderPasses(CullRenderPassesWithNoQuads(), frame); 551 removeRenderPasses(CullRenderPassesWithNoQuads(), frame);
552 m_renderer->DecideRenderPassAllocationsForFrame(frame.renderPasses); 552 m_renderer->DecideRenderPassAllocationsForFrame(frame.renderPasses);
553 removeRenderPasses(CullRenderPassesWithCachedTextures(*m_renderer), frame); 553 removeRenderPasses(CullRenderPassesWithCachedTextures(*m_renderer), frame);
554 554
555 return drawFrame; 555 return drawFrame;
556 } 556 }
557 557
558 void LayerTreeHostImpl::setBackgroundTickingEnabled(bool enabled) 558 void LayerTreeHostImpl::setBackgroundTickingEnabled(bool enabled)
559 { 559 {
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats ()); 1730 m_tileManager->SetRecordRenderingStats(m_debugState.recordRenderingStats ());
1731 } 1731 }
1732 1732
1733 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime, int commitNumber) 1733 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime, int commitNumber)
1734 { 1734 {
1735 DCHECK(m_debugState.continuousPainting); 1735 DCHECK(m_debugState.continuousPainting);
1736 m_paintTimeCounter->SavePaintTime(totalPaintTime, commitNumber); 1736 m_paintTimeCounter->SavePaintTime(totalPaintTime, commitNumber);
1737 } 1737 }
1738 1738
1739 } // namespace cc 1739 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/occlusion_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698