| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |