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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/render_pass.h" | 7 #include "cc/render_pass.h" |
8 | 8 |
9 #include "CCLayerImpl.h" | 9 #include "cc/layer_impl.h" |
10 #include "cc/math_util.h" | 10 #include "cc/math_util.h" |
11 #include "cc/occlusion_tracker.h" | 11 #include "cc/occlusion_tracker.h" |
12 #include "cc/quad_culler.h" | 12 #include "cc/quad_culler.h" |
13 #include "cc/shared_quad_state.h" | 13 #include "cc/shared_quad_state.h" |
14 #include "cc/solid_color_draw_quad.h" | 14 #include "cc/solid_color_draw_quad.h" |
15 | 15 |
16 using WebKit::WebTransformationMatrix; | 16 using WebKit::WebTransformationMatrix; |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Vector<WebCore::IntRect> fillRects = fillRegion.rects(); | 97 Vector<WebCore::IntRect> fillRects = fillRegion.rects(); |
98 for (size_t i = 0; i < fillRects.size(); ++i) { | 98 for (size_t i = 0; i < fillRects.size(); ++i) { |
99 // The root layer transform is composed of translations and scales only,
no perspective, so mapping is sufficient. | 99 // The root layer transform is composed of translations and scales only,
no perspective, so mapping is sufficient. |
100 IntRect layerRect = CCMathUtil::mapClippedRect(transformToLayerSpace, cc
::IntRect(fillRects[i])); | 100 IntRect layerRect = CCMathUtil::mapClippedRect(transformToLayerSpace, cc
::IntRect(fillRects[i])); |
101 // Skip the quad culler and just append the quads directly to avoid occl
usion checks. | 101 // Skip the quad culler and just append the quads directly to avoid occl
usion checks. |
102 m_quadList.append(CCSolidColorDrawQuad::create(sharedQuadState, layerRec
t, screenBackgroundColor).PassAs<CCDrawQuad>()); | 102 m_quadList.append(CCSolidColorDrawQuad::create(sharedQuadState, layerRec
t, screenBackgroundColor).PassAs<CCDrawQuad>()); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 } // namespace cc | 106 } // namespace cc |
OLD | NEW |