| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 maxStages = 1; | 288 maxStages = 1; |
| 289 } else { | 289 } else { |
| 290 return; | 290 return; |
| 291 } | 291 } |
| 292 #if SK_ANGLE | 292 #if SK_ANGLE |
| 293 // Some long shaders run out of temporary registers in the D3D compi
ler on ANGLE. | 293 // Some long shaders run out of temporary registers in the D3D compi
ler on ANGLE. |
| 294 if (type == GrContextFactory::kANGLE_GLContextType) { | 294 if (type == GrContextFactory::kANGLE_GLContextType) { |
| 295 maxStages = 2; | 295 maxStages = 2; |
| 296 } | 296 } |
| 297 #endif | 297 #endif |
| 298 #if SK_COMMAND_BUFFER |
| 299 // Some long shaders run out of temporary registers in the D3D compi
ler on ANGLE. |
| 300 // TODO(hendrikw): This only needs to happen with the ANGLE comand b
uffer backend. |
| 301 if (type == GrContextFactory::kCommandBuffer_GLContextType) { |
| 302 maxStages = 2; |
| 303 } |
| 304 #endif |
| 298 GrTestTarget target; | 305 GrTestTarget target; |
| 299 context->getTestTarget(&target); | 306 context->getTestTarget(&target); |
| 300 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context,
maxStages)); | 307 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context,
maxStages)); |
| 301 } | 308 } |
| 302 } | 309 } |
| 303 } | 310 } |
| 304 | 311 |
| 305 #endif | 312 #endif |
| OLD | NEW |