| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 this, | 183 this, |
| 184 dummyTextures[0]->asRenderTarget(), | 184 dummyTextures[0]->asRenderTarget(), |
| 185 dstTexture, | 185 dstTexture, |
| 186 stages.get(), | 186 stages.get(), |
| 187 numColorStages, | 187 numColorStages, |
| 188 numCoverageStages, | 188 numCoverageStages, |
| 189 currAttribIndex); | 189 currAttribIndex); |
| 190 | 190 |
| 191 SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this->glContext(), | 191 SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this->glContext(), |
| 192 pdesc, | 192 pdesc, |
| 193 stages.get())); | 193 stages, |
| 194 stages + numColorS
tages)); |
| 194 for (int s = 0; s < numStages; ++s) { | 195 for (int s = 0; s < numStages; ++s) { |
| 195 SkDELETE(stages[s]); | 196 SkDELETE(stages[s]); |
| 196 } | 197 } |
| 197 if (NULL == program.get()) { | 198 if (NULL == program.get()) { |
| 198 return false; | 199 return false; |
| 199 } | 200 } |
| 200 } | 201 } |
| 201 return true; | 202 return true; |
| 202 } | 203 } |
| 203 | 204 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); | 238 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); |
| 238 GrConfigConversionEffect::Create(NULL, | 239 GrConfigConversionEffect::Create(NULL, |
| 239 false, | 240 false, |
| 240 GrConfigConversionEffect::kNone_PMConversio
n, | 241 GrConfigConversionEffect::kNone_PMConversio
n, |
| 241 SkMatrix::I()); | 242 SkMatrix::I()); |
| 242 SkScalar matrix[20]; | 243 SkScalar matrix[20]; |
| 243 SkColorMatrixFilter cmf(matrix); | 244 SkColorMatrixFilter cmf(matrix); |
| 244 } | 245 } |
| 245 | 246 |
| 246 #endif | 247 #endif |
| OLD | NEW |