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 "cc/render_surface_impl.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" | |
13 #include "base/logging.h" | 12 #include "base/logging.h" |
14 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
| 14 #include "cc/layer_impl.h" |
15 #include "cc/math_util.h" | 15 #include "cc/math_util.h" |
16 #include "cc/quad_sink.h" | 16 #include "cc/quad_sink.h" |
17 #include "cc/render_pass.h" | 17 #include "cc/render_pass.h" |
18 #include "cc/render_pass_draw_quad.h" | 18 #include "cc/render_pass_draw_quad.h" |
19 #include "cc/render_pass_sink.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 |
(...skipping 217 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 |