| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 353                 maxStages = 6; | 353                 maxStages = 6; | 
| 354             } else if (kTegra3_GrGLRenderer == gpu->ctxInfo().renderer() || | 354             } else if (kTegra3_GrGLRenderer == gpu->ctxInfo().renderer() || | 
| 355                        kOther_GrGLRenderer == gpu->ctxInfo().renderer()) { | 355                        kOther_GrGLRenderer == gpu->ctxInfo().renderer()) { | 
| 356                 maxStages = 1; | 356                 maxStages = 1; | 
| 357             } else { | 357             } else { | 
| 358                 return; | 358                 return; | 
| 359             } | 359             } | 
| 360 #if SK_ANGLE | 360 #if SK_ANGLE | 
| 361             // Some long shaders run out of temporary registers in the D3D compi
     ler on ANGLE. | 361             // Some long shaders run out of temporary registers in the D3D compi
     ler on ANGLE. | 
| 362             if (type == GrContextFactory::kANGLE_GLContextType) { | 362             if (type == GrContextFactory::kANGLE_GLContextType) { | 
| 363                 maxStages = 3; | 363                 maxStages = 2; | 
| 364             } | 364             } | 
| 365 #endif | 365 #endif | 
| 366             GrTestTarget target; | 366             GrTestTarget target; | 
| 367             context->getTestTarget(&target); | 367             context->getTestTarget(&target); | 
| 368             REPORTER_ASSERT(reporter, target.target()->programUnitTest(maxStages
     )); | 368             REPORTER_ASSERT(reporter, target.target()->programUnitTest(maxStages
     )); | 
| 369         } | 369         } | 
| 370     } | 370     } | 
| 371 } | 371 } | 
| 372 | 372 | 
| 373 #endif | 373 #endif | 
| OLD | NEW | 
|---|