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 "CCRenderSurface.h" | 7 #include "CCRenderSurface.h" |
8 | 8 |
9 #include "CCDamageTracker.h" | 9 #include "CCDamageTracker.h" |
10 #include "CCDebugBorderDrawQuad.h" | 10 #include "CCDebugBorderDrawQuad.h" |
11 #include "CCDelegatedRendererLayerImpl.h" | 11 #include "CCDelegatedRendererLayerImpl.h" |
12 #include "CCLayerImpl.h" | 12 #include "CCLayerImpl.h" |
13 #include "CCMathUtil.h" | |
14 #include "CCQuadSink.h" | |
15 #include "CCRenderPass.h" | |
16 #include "CCRenderPassDrawQuad.h" | |
17 #include "CCRenderPassSink.h" | |
18 #include "base/logging.h" | 13 #include "base/logging.h" |
19 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "cc/math_util.h" |
| 16 #include "cc/quad_sink.h" |
| 17 #include "cc/render_pass.h" |
| 18 #include "cc/render_pass_draw_quad.h" |
| 19 #include "cc/render_pass_sink.h" |
20 #include "cc/shared_quad_state.h" | 20 #include "cc/shared_quad_state.h" |
21 #include <public/WebTransformationMatrix.h> | 21 #include <public/WebTransformationMatrix.h> |
22 | 22 |
23 using WebKit::WebTransformationMatrix; | 23 using WebKit::WebTransformationMatrix; |
24 | 24 |
25 namespace cc { | 25 namespace cc { |
26 | 26 |
27 static const int debugSurfaceBorderWidth = 2; | 27 static const int debugSurfaceBorderWidth = 2; |
28 static const int debugSurfaceBorderAlpha = 100; | 28 static const int debugSurfaceBorderAlpha = 100; |
29 static const int debugSurfaceBorderColorRed = 0; | 29 static const int debugSurfaceBorderColorRed = 0; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 242 } |
243 | 243 |
244 CCResourceProvider::ResourceId maskResourceId = maskLayer ? maskLayer->conte
ntsResourceId() : 0; | 244 CCResourceProvider::ResourceId maskResourceId = maskLayer ? maskLayer->conte
ntsResourceId() : 0; |
245 IntRect contentsChangedSinceLastFrame = contentsChanged() ? m_contentRect :
IntRect(); | 245 IntRect contentsChangedSinceLastFrame = contentsChanged() ? m_contentRect :
IntRect(); |
246 | 246 |
247 quadSink.append(CCRenderPassDrawQuad::create(sharedQuadState, contentRect(),
renderPassId, forReplica, maskResourceId, contentsChangedSinceLastFrame, | 247 quadSink.append(CCRenderPassDrawQuad::create(sharedQuadState, contentRect(),
renderPassId, forReplica, maskResourceId, contentsChangedSinceLastFrame, |
248 maskTexCoordScaleX, maskTexCoor
dScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY).PassAs<CCDrawQuad>(), appendQ
uadsData); | 248 maskTexCoordScaleX, maskTexCoor
dScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY).PassAs<CCDrawQuad>(), appendQ
uadsData); |
249 } | 249 } |
250 | 250 |
251 } | 251 } |
OLD | NEW |