| 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/logging.h" | |
| 10 #include "base/stringprintf.h" | |
| 11 #include "CCDamageTracker.h" | 9 #include "CCDamageTracker.h" |
| 12 #include "CCDebugBorderDrawQuad.h" | 10 #include "CCDebugBorderDrawQuad.h" |
| 13 #include "CCDelegatedRendererLayerImpl.h" | 11 #include "CCDelegatedRendererLayerImpl.h" |
| 14 #include "CCLayerImpl.h" | 12 #include "CCLayerImpl.h" |
| 15 #include "CCMathUtil.h" | 13 #include "CCMathUtil.h" |
| 16 #include "CCQuadSink.h" | 14 #include "CCQuadSink.h" |
| 17 #include "CCRenderPass.h" | 15 #include "CCRenderPass.h" |
| 18 #include "CCRenderPassDrawQuad.h" | 16 #include "CCRenderPassDrawQuad.h" |
| 19 #include "CCRenderPassSink.h" | 17 #include "CCRenderPassSink.h" |
| 20 #include "CCSharedQuadState.h" | 18 #include "base/logging.h" |
| 19 #include "base/stringprintf.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; |
| 30 static const int debugSurfaceBorderColorGreen = 0; | 30 static const int debugSurfaceBorderColorGreen = 0; |
| (...skipping 211 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 |