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 "CCAppendQuadsData.h" | 9 #include "CCAppendQuadsData.h" |
10 #include "CCDebugBorderDrawQuad.h" | 10 #include "CCDebugBorderDrawQuad.h" |
11 #include "CCLayerImpl.h" | |
12 #include "Region.h" | 11 #include "Region.h" |
| 12 #include "cc/layer_impl.h" |
13 #include "cc/occlusion_tracker.h" | 13 #include "cc/occlusion_tracker.h" |
14 #include "cc/overdraw_metrics.h" | 14 #include "cc/overdraw_metrics.h" |
15 #include "cc/render_pass.h" | 15 #include "cc/render_pass.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
17 #include <public/WebTransformationMatrix.h> | 17 #include <public/WebTransformationMatrix.h> |
18 | 18 |
19 using namespace std; | 19 using namespace std; |
20 | 20 |
21 namespace cc { | 21 namespace cc { |
22 | 22 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec
t(m_layer, false, cc::IntRect(drawQuad->quadRect()), &hasOcclusionFromOutsideTar
getSurface); | 82 culledRect = m_occlusionTracker->unoccludedContributingSurfaceContentRec
t(m_layer, false, cc::IntRect(drawQuad->quadRect()), &hasOcclusionFromOutsideTar
getSurface); |
83 else | 83 else |
84 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer, cc::IntR
ect(drawQuad->quadRect()), &hasOcclusionFromOutsideTargetSurface); | 84 culledRect = m_occlusionTracker->unoccludedContentRect(m_layer, cc::IntR
ect(drawQuad->quadRect()), &hasOcclusionFromOutsideTargetSurface); |
85 | 85 |
86 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; | 86 appendQuadsData.hadOcclusionFromOutsideTargetSurface |= hasOcclusionFromOuts
ideTargetSurface; |
87 | 87 |
88 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus
ionTracker, m_showCullingWithDebugBorderQuads); | 88 return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlus
ionTracker, m_showCullingWithDebugBorderQuads); |
89 } | 89 } |
90 | 90 |
91 } // namespace cc | 91 } // namespace cc |
OLD | NEW |