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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 16180006: separate arrays for color and coverage effects. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add helper function Created 7 years, 6 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/GrGpuGL_program.cpp ('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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGpuGL_program.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698