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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 816513003: Stop creating GrODS for stencilPath commands. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years 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
« src/gpu/GrInOrderDrawBuffer.cpp ('K') | « src/gpu/gl/GrGpuGL.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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 SkAutoTUnref<GrTexture> dummyTexture2(gpu->createTexture(dummyDesc, NULL, 0) ); 232 SkAutoTUnref<GrTexture> dummyTexture2(gpu->createTexture(dummyDesc, NULL, 0) );
233 233
234 if (!dummyTexture1 || ! dummyTexture2) { 234 if (!dummyTexture1 || ! dummyTexture2) {
235 SkDebugf("Could not allocate dummy textures"); 235 SkDebugf("Could not allocate dummy textures");
236 return false; 236 return false;
237 } 237 }
238 238
239 GrTexture* dummyTextures[] = {dummyTexture1.get(), dummyTexture2.get()}; 239 GrTexture* dummyTextures[] = {dummyTexture1.get(), dummyTexture2.get()};
240 240
241 // dummy scissor state 241 // dummy scissor state
242 GrClipMaskManager::ScissorState scissor; 242 GrScissorState scissor;
243 243
244 // Setup texture cache id key 244 // Setup texture cache id key
245 const GrCacheID::Domain glProgramsDomain = GrCacheID::GenerateDomain(); 245 const GrCacheID::Domain glProgramsDomain = GrCacheID::GenerateDomain();
246 GrCacheID::Key key; 246 GrCacheID::Key key;
247 memset(&key, 0, sizeof(key)); 247 memset(&key, 0, sizeof(key));
248 key.fData32[0] = kRenderTargetWidth; 248 key.fData32[0] = kRenderTargetWidth;
249 key.fData32[1] = kRenderTargetHeight; 249 key.fData32[1] = kRenderTargetHeight;
250 GrCacheID glProgramsCacheID(glProgramsDomain, key); 250 GrCacheID glProgramsCacheID(glProgramsDomain, key);
251 251
252 // setup clip 252 // setup clip
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 #endif 364 #endif
365 GrTestTarget target; 365 GrTestTarget target;
366 context->getTestTarget(&target); 366 context->getTestTarget(&target);
367 REPORTER_ASSERT(reporter, target.target()->programUnitTest(maxStages )); 367 REPORTER_ASSERT(reporter, target.target()->programUnitTest(maxStages ));
368 } 368 }
369 } 369 }
370 } 370 }
371 371
372 #endif 372 #endif
OLDNEW
« src/gpu/GrInOrderDrawBuffer.cpp ('K') | « src/gpu/gl/GrGpuGL.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698