OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 // This is a GPU-backend specific test. It relies on static intializers to work | 9 // This is a GPU-backend specific test. It relies on static intializers to work |
10 | 10 |
11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
12 | 12 |
13 #if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 13 #if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
14 | 14 |
15 #include "gl/GrGpuGL.h" | 15 #include "gl/GrGpuGL.h" |
16 #include "GrBackendEffectFactory.h" | 16 #include "GrBackendEffectFactory.h" |
17 #include "GrContextFactory.h" | 17 #include "GrContextFactory.h" |
18 #include "GrDrawEffect.h" | 18 #include "GrDrawEffect.h" |
19 #include "effects/GrConfigConversionEffect.h" | 19 #include "effects/GrConfigConversionEffect.h" |
20 | 20 |
21 #include "SkChecksum.h" | 21 #include "SkChecksum.h" |
22 #include "SkRandom.h" | 22 #include "SkRandom.h" |
23 #include "Test.h" | 23 #include "Test.h" |
24 #include "TestClassDef.h" | |
25 | 24 |
26 void GrGLProgramDesc::setRandom(SkRandom* random, | 25 void GrGLProgramDesc::setRandom(SkRandom* random, |
27 const GrGpuGL* gpu, | 26 const GrGpuGL* gpu, |
28 const GrRenderTarget* dstRenderTarget, | 27 const GrRenderTarget* dstRenderTarget, |
29 const GrTexture* dstCopyTexture, | 28 const GrTexture* dstCopyTexture, |
30 const GrEffectStage* stages[], | 29 const GrEffectStage* stages[], |
31 int numColorStages, | 30 int numColorStages, |
32 int numCoverageStages, | 31 int numCoverageStages, |
33 int currAttribIndex) { | 32 int currAttribIndex) { |
34 int numEffects = numColorStages + numCoverageStages; | 33 int numEffects = numColorStages + numCoverageStages; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); | 261 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); |
263 GrConfigConversionEffect::Create(NULL, | 262 GrConfigConversionEffect::Create(NULL, |
264 false, | 263 false, |
265 GrConfigConversionEffect::kNone_PMConversio
n, | 264 GrConfigConversionEffect::kNone_PMConversio
n, |
266 SkMatrix::I()); | 265 SkMatrix::I()); |
267 SkScalar matrix[20]; | 266 SkScalar matrix[20]; |
268 SkColorMatrixFilter cmf(matrix); | 267 SkColorMatrixFilter cmf(matrix); |
269 } | 268 } |
270 | 269 |
271 #endif | 270 #endif |
OLD | NEW |