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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 23636011: Add a GrGpuGL reference for GrGLProgram/GrGLUniformManager (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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
« src/gpu/gl/GrGpuGL.h ('K') | « 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const GrTexture* dstTexture = random.nextBool() ? dummyTextures[0] : dum myTextures[1]; 179 const GrTexture* dstTexture = random.nextBool() ? dummyTextures[0] : dum myTextures[1];
180 pdesc.setRandom(&random, 180 pdesc.setRandom(&random,
181 this, 181 this,
182 dummyTextures[0]->asRenderTarget(), 182 dummyTextures[0]->asRenderTarget(),
183 dstTexture, 183 dstTexture,
184 stages.get(), 184 stages.get(),
185 numColorStages, 185 numColorStages,
186 numCoverageStages, 186 numCoverageStages,
187 currAttribIndex); 187 currAttribIndex);
188 188
189 SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this->glContext(), 189 SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this,
190 pdesc, 190 pdesc,
191 stages, 191 stages,
192 stages + numColorS tages)); 192 stages + numColorS tages));
193 for (int s = 0; s < numStages; ++s) { 193 for (int s = 0; s < numStages; ++s) {
194 SkDELETE(stages[s]); 194 SkDELETE(stages[s]);
195 } 195 }
196 if (NULL == program.get()) { 196 if (NULL == program.get()) {
197 return false; 197 return false;
198 } 198 }
199 } 199 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar 1); 236 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar 1);
237 GrConfigConversionEffect::Create(NULL, 237 GrConfigConversionEffect::Create(NULL,
238 false, 238 false,
239 GrConfigConversionEffect::kNone_PMConversio n, 239 GrConfigConversionEffect::kNone_PMConversio n,
240 SkMatrix::I()); 240 SkMatrix::I());
241 SkScalar matrix[20]; 241 SkScalar matrix[20];
242 SkColorMatrixFilter cmf(matrix); 242 SkColorMatrixFilter cmf(matrix);
243 } 243 }
244 244
245 #endif 245 #endif
OLDNEW
« src/gpu/gl/GrGpuGL.h ('K') | « src/gpu/gl/GrGpuGL_program.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698