| 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 26 matching lines...) Expand all Loading... |
| 37 } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && | 37 } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && |
| 38 kAttribute_ColorInput == fColorInput); | 38 kAttribute_ColorInput == fColorInput); |
| 39 fColorAttributeIndex = (fColorInput == kAttribute_ColorInput) ? currAttribIn
dex++ : -1; | 39 fColorAttributeIndex = (fColorInput == kAttribute_ColorInput) ? currAttribIn
dex++ : -1; |
| 40 | 40 |
| 41 do { | 41 do { |
| 42 fCoverageInput = random->nextULessThan(kColorInputCnt); | 42 fCoverageInput = random->nextULessThan(kColorInputCnt); |
| 43 } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && | 43 } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && |
| 44 kAttribute_ColorInput == fCoverageInput); | 44 kAttribute_ColorInput == fCoverageInput); |
| 45 fCoverageAttributeIndex = (fCoverageInput == kAttribute_ColorInput) ? currAt
tribIndex++ : -1; | 45 fCoverageAttributeIndex = (fCoverageInput == kAttribute_ColorInput) ? currAt
tribIndex++ : -1; |
| 46 | 46 |
| 47 fColorFilterXfermode = random->nextULessThan(SkXfermode::kCoeffModesCnt); | 47 fColorFilterXfermode = random->nextULessThan(SkXfermode::kLastCoeffMode + 1)
; |
| 48 | 48 |
| 49 fFirstCoverageStage = random->nextULessThan(GrDrawState::kNumStages); | 49 fFirstCoverageStage = random->nextULessThan(GrDrawState::kNumStages); |
| 50 | 50 |
| 51 #if GR_GL_EXPERIMENTAL_GS | 51 #if GR_GL_EXPERIMENTAL_GS |
| 52 fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool()
; | 52 fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool()
; |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 fDiscardIfZeroCoverage = random->nextBool(); | 55 fDiscardIfZeroCoverage = random->nextBool(); |
| 56 | 56 |
| 57 bool useLocalCoords = random->nextBool() && currAttribIndex < GrDrawState::k
MaxVertexAttribCnt; | 57 bool useLocalCoords = random->nextBool() && currAttribIndex < GrDrawState::k
MaxVertexAttribCnt; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); | 193 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); |
| 194 GrConfigConversionEffect::Create(NULL, | 194 GrConfigConversionEffect::Create(NULL, |
| 195 false, | 195 false, |
| 196 GrConfigConversionEffect::kNone_PMConversio
n, | 196 GrConfigConversionEffect::kNone_PMConversio
n, |
| 197 SkMatrix::I()); | 197 SkMatrix::I()); |
| 198 SkScalar matrix[20]; | 198 SkScalar matrix[20]; |
| 199 SkColorMatrixFilter cmf(matrix); | 199 SkColorMatrixFilter cmf(matrix); |
| 200 } | 200 } |
| 201 | 201 |
| 202 #endif | 202 #endif |
| OLD | NEW |