| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "CCQuadCuller.h" | 9 #include "CCQuadCuller.h" |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ASSERT(drawQuad->sharedQuadStateId() == m_currentSharedQuadState->id); | 76 ASSERT(drawQuad->sharedQuadStateId() == m_currentSharedQuadState->id); |
| 77 ASSERT(!m_sharedQuadStateList.isEmpty()); | 77 ASSERT(!m_sharedQuadStateList.isEmpty()); |
| 78 ASSERT(m_sharedQuadStateList.last() == m_currentSharedQuadState); | 78 ASSERT(m_sharedQuadStateList.last() == m_currentSharedQuadState); |
| 79 | 79 |
| 80 IntRect culledRect; | 80 IntRect culledRect; |
| 81 bool hasOcclusionFromOutsideTargetSurface; | 81 bool hasOcclusionFromOutsideTargetSurface; |
| 82 | 82 |
| 83 if (m_forSurface) | 83 if (m_forSurface) |
| 84 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec
t(m_layer, false, drawQuad->quadRect(), &hasOcclusionFromOutsideTargetSurface); | 84 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec
t(m_layer, false, drawQuad->quadRect(), &hasOcclusionFromOutsideTargetSurface); |
| 85 else | 85 else |
| 86 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer, drawQuad
->quadRect(), &hasOcclusionFromOutsideTargetSurface); | 86 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer->renderTa
rget(), drawQuad->quadRect(), drawQuad->quadTransform(), true, drawQuad->clipped
RectInTarget(), &hasOcclusionFromOutsideTargetSurface); |
| 87 | 87 |
| 88 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; | 88 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; |
| 89 | 89 |
| 90 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus
ionTracker, m_showCullingWithDebugBorderQuads); | 90 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus
ionTracker, m_showCullingWithDebugBorderQuads); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace cc | 93 } // namespace cc |
| 94 #endif // USE(ACCELERATED_COMPOSITING) | 94 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |