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 #include "cc/quad_culler.h" | 7 #include "cc/quad_culler.h" |
8 | 8 |
9 #include "Region.h" | 9 #include "Region.h" |
10 #include "cc/append_quads_data.h" | 10 #include "cc/append_quads_data.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 if (m_forSurface) | 82 if (m_forSurface) |
83 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec
t(m_layer, false, drawQuad->quadRect(), &hasOcclusionFromOutsideTargetSurface); | 83 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec
t(m_layer, false, drawQuad->quadRect(), &hasOcclusionFromOutsideTargetSurface); |
84 else | 84 else |
85 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer->renderTa
rget(), drawQuad->quadRect(), drawQuad->quadTransform(), implDrawTransformIsUnkn
own, drawQuad->clippedRectInTarget(), &hasOcclusionFromOutsideTargetSurface); | 85 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer->renderTa
rget(), drawQuad->quadRect(), drawQuad->quadTransform(), implDrawTransformIsUnkn
own, drawQuad->clippedRectInTarget(), &hasOcclusionFromOutsideTargetSurface); |
86 | 86 |
87 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; | 87 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; |
88 | 88 |
89 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus
ionTracker, m_showCullingWithDebugBorderQuads); | 89 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus
ionTracker, m_showCullingWithDebugBorderQuads); |
90 } | 90 } |
91 | 91 |
92 } // namespace cc | 92 } // namespace cc |
OLD | NEW |