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 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const GrBackendEffectFactory& factory = (*stages[s]->getEffect())->g
etFactory(); | 63 const GrBackendEffectFactory& factory = (*stages[s]->getEffect())->g
etFactory(); |
64 GrDrawEffect drawEffect(*stages[s], useLocalCoords); | 64 GrDrawEffect drawEffect(*stages[s], useLocalCoords); |
65 fEffectKeys[s] = factory.glEffectKey(drawEffect, gpu->glCaps()); | 65 fEffectKeys[s] = factory.glEffectKey(drawEffect, gpu->glCaps()); |
66 if ((*stages[s]->getEffect())->willReadDstColor()) { | 66 if ((*stages[s]->getEffect())->willReadDstColor()) { |
67 dstRead = true; | 67 dstRead = true; |
68 } | 68 } |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 if (dstRead) { | 72 if (dstRead) { |
73 this->fDstRead = GrGLShaderBuilder::KeyForDstRead(dstTexture, gpu->glCap
s()); | 73 this->fDstReadKey = GrGLShaderBuilder::KeyForDstRead(dstTexture, gpu->gl
Caps()); |
74 } | 74 } |
75 | 75 |
76 CoverageOutput coverageOutput; | 76 CoverageOutput coverageOutput; |
77 bool illegalCoverageOutput; | 77 bool illegalCoverageOutput; |
78 do { | 78 do { |
79 coverageOutput = static_cast<CoverageOutput>(random->nextULessThan(kCove
rageOutputCnt)); | 79 coverageOutput = static_cast<CoverageOutput>(random->nextULessThan(kCove
rageOutputCnt)); |
80 illegalCoverageOutput = (!gpu->caps()->dualSourceBlendingSupport() && | 80 illegalCoverageOutput = (!gpu->caps()->dualSourceBlendingSupport() && |
81 CoverageOutputUsesSecondaryOutput(coverageOutpu
t)) || | 81 CoverageOutputUsesSecondaryOutput(coverageOutpu
t)) || |
82 (!dstRead && kCombineWithDst_CoverageOutput == c
overageOutput); | 82 (!dstRead && kCombineWithDst_CoverageOutput == c
overageOutput); |
83 } while (illegalCoverageOutput); | 83 } while (illegalCoverageOutput); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); | 195 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); |
196 GrConfigConversionEffect::Create(NULL, | 196 GrConfigConversionEffect::Create(NULL, |
197 false, | 197 false, |
198 GrConfigConversionEffect::kNone_PMConversio
n, | 198 GrConfigConversionEffect::kNone_PMConversio
n, |
199 SkMatrix::I()); | 199 SkMatrix::I()); |
200 SkScalar matrix[20]; | 200 SkScalar matrix[20]; |
201 SkColorMatrixFilter cmf(matrix); | 201 SkColorMatrixFilter cmf(matrix); |
202 } | 202 } |
203 | 203 |
204 #endif | 204 #endif |
OLD | NEW |