| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/quad_culler.h" | 5 #include "cc/quad_culler.h" |
| 6 | 6 |
| 7 #include "cc/append_quads_data.h" | 7 #include "cc/append_quads_data.h" |
| 8 #include "cc/debug_border_draw_quad.h" | 8 #include "cc/debug_border_draw_quad.h" |
| 9 #include "cc/debug_colors.h" | 9 #include "cc/debug_colors.h" |
| 10 #include "cc/layer_impl.h" | 10 #include "cc/layer_impl.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 DCHECK(!m_sharedQuadStateList.empty()); | 66 DCHECK(!m_sharedQuadStateList.empty()); |
| 67 DCHECK(m_sharedQuadStateList.back() == m_currentSharedQuadState); | 67 DCHECK(m_sharedQuadStateList.back() == m_currentSharedQuadState); |
| 68 | 68 |
| 69 gfx::Rect culledRect; | 69 gfx::Rect culledRect; |
| 70 bool hasOcclusionFromOutsideTargetSurface; | 70 bool hasOcclusionFromOutsideTargetSurface; |
| 71 bool implDrawTransformIsUnknown = false; | 71 bool implDrawTransformIsUnknown = false; |
| 72 | 72 |
| 73 if (m_forSurface) | 73 if (m_forSurface) |
| 74 culledRect = m_occlusionTracker.unoccludedContributingSurfaceContentRect
(m_layer, false, drawQuad->rect, &hasOcclusionFromOutsideTargetSurface); | 74 culledRect = m_occlusionTracker.unoccludedContributingSurfaceContentRect
(m_layer, false, drawQuad->rect, &hasOcclusionFromOutsideTargetSurface); |
| 75 else | 75 else |
| 76 culledRect = m_occlusionTracker.unoccludedContentRect(m_layer->renderTar
get(), drawQuad->rect, drawQuad->quadTransform(), implDrawTransformIsUnknown, dr
awQuad->clippedRectInTarget(), &hasOcclusionFromOutsideTargetSurface); | 76 culledRect = m_occlusionTracker.unoccludedContentRect(m_layer->renderTar
get(), drawQuad->rect, drawQuad->quadTransform(), implDrawTransformIsUnknown, dr
awQuad->isClipped(), drawQuad->clippedRectInTarget(), &hasOcclusionFromOutsideTa
rgetSurface); |
| 77 | 77 |
| 78 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; | 78 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; |
| 79 | 79 |
| 80 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, m_occlusi
onTracker, m_layer, m_showCullingWithDebugBorderQuads); | 80 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, m_occlusi
onTracker, m_layer, m_showCullingWithDebugBorderQuads); |
| 81 } | 81 } |
| 82 | 82 |
| 83 } // namespace cc | 83 } // namespace cc |
| OLD | NEW |