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 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
8 | 8 |
9 #include "CCRenderSurface.h" | 9 #include "CCRenderSurface.h" |
10 | 10 |
11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
12 #include "CCDamageTracker.h" | 12 #include "CCDamageTracker.h" |
13 #include "CCDebugBorderDrawQuad.h" | 13 #include "CCDebugBorderDrawQuad.h" |
14 #include "CCLayerImpl.h" | 14 #include "CCLayerImpl.h" |
15 #include "CCMathUtil.h" | 15 #include "CCMathUtil.h" |
16 #include "CCQuadSink.h" | 16 #include "CCQuadSink.h" |
17 #include "CCRenderPass.h" | 17 #include "CCRenderPass.h" |
18 #include "CCRenderPassDrawQuad.h" | 18 #include "CCRenderPassDrawQuad.h" |
19 #include "CCRenderPassSink.h" | 19 #include "CCRenderPassSink.h" |
20 #include "CCSharedQuadState.h" | 20 #include "CCSharedQuadState.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 WebCore { | 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; |
31 static const int debugSurfaceBorderColorBlue = 255; | 31 static const int debugSurfaceBorderColorBlue = 255; |
32 static const int debugReplicaBorderColorRed = 160; | 32 static const int debugReplicaBorderColorRed = 160; |
33 static const int debugReplicaBorderColorGreen = 0; | 33 static const int debugReplicaBorderColorGreen = 0; |
34 static const int debugReplicaBorderColorBlue = 255; | 34 static const int debugReplicaBorderColorBlue = 255; |
35 | 35 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 CCResourceProvider::ResourceId maskResourceId = maskLayer ? maskLayer->conte
ntsResourceId() : 0; | 228 CCResourceProvider::ResourceId maskResourceId = maskLayer ? maskLayer->conte
ntsResourceId() : 0; |
229 IntRect contentsChangedSinceLastFrame = contentsChanged() ? m_contentRect :
IntRect(); | 229 IntRect contentsChangedSinceLastFrame = contentsChanged() ? m_contentRect :
IntRect(); |
230 | 230 |
231 quadSink.append(CCRenderPassDrawQuad::create(sharedQuadState, contentRect(),
renderPassId, forReplica, maskResourceId, contentsChangedSinceLastFrame, | 231 quadSink.append(CCRenderPassDrawQuad::create(sharedQuadState, contentRect(),
renderPassId, forReplica, maskResourceId, contentsChangedSinceLastFrame, |
232 maskTexCoordScaleX, maskTexCoor
dScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY), appendQuadsData); | 232 maskTexCoordScaleX, maskTexCoor
dScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY), appendQuadsData); |
233 } | 233 } |
234 | 234 |
235 } | 235 } |
236 #endif // USE(ACCELERATED_COMPOSITING) | 236 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |