Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 14189024: Add all remaining separable xfer modes to GPU backend. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLSL_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLSL_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698