| 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 "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "CCDamageTracker.h" | 10 #include "CCDamageTracker.h" |
| 11 #include "CCDebugBorderDrawQuad.h" | 11 #include "CCDebugBorderDrawQuad.h" |
| 12 #include "CCDelegatedRendererLayerImpl.h" | 12 #include "CCDelegatedRendererLayerImpl.h" |
| 13 #include "CCLayerImpl.h" | 13 #include "CCLayerImpl.h" |
| 14 #include "CCMathUtil.h" | 14 #include "cc/math_util.h" |
| 15 #include "CCQuadSink.h" | 15 #include "CCQuadSink.h" |
| 16 #include "CCRenderPass.h" | 16 #include "CCRenderPass.h" |
| 17 #include "CCRenderPassDrawQuad.h" | 17 #include "CCRenderPassDrawQuad.h" |
| 18 #include "CCRenderPassSink.h" | 18 #include "CCRenderPassSink.h" |
| 19 #include "CCSharedQuadState.h" | 19 #include "CCSharedQuadState.h" |
| 20 #include <public/WebTransformationMatrix.h> | 20 #include <public/WebTransformationMatrix.h> |
| 21 | 21 |
| 22 using WebKit::WebTransformationMatrix; | 22 using WebKit::WebTransformationMatrix; |
| 23 | 23 |
| 24 namespace cc { | 24 namespace cc { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 | 242 |
| 243 CCResourceProvider::ResourceId maskResourceId = maskLayer ? maskLayer->conte
ntsResourceId() : 0; | 243 CCResourceProvider::ResourceId maskResourceId = maskLayer ? maskLayer->conte
ntsResourceId() : 0; |
| 244 IntRect contentsChangedSinceLastFrame = contentsChanged() ? m_contentRect :
IntRect(); | 244 IntRect contentsChangedSinceLastFrame = contentsChanged() ? m_contentRect :
IntRect(); |
| 245 | 245 |
| 246 quadSink.append(CCRenderPassDrawQuad::create(sharedQuadState, contentRect(),
renderPassId, forReplica, maskResourceId, contentsChangedSinceLastFrame, | 246 quadSink.append(CCRenderPassDrawQuad::create(sharedQuadState, contentRect(),
renderPassId, forReplica, maskResourceId, contentsChangedSinceLastFrame, |
| 247 maskTexCoordScaleX, maskTexCoor
dScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY).PassAs<CCDrawQuad>(), appendQ
uadsData); | 247 maskTexCoordScaleX, maskTexCoor
dScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY).PassAs<CCDrawQuad>(), appendQ
uadsData); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } | 250 } |
| OLD | NEW |