OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |