| 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 |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 | 12 |
| 13 #if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 13 #if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
| 14 | 14 |
| 15 #include "GrAutoLocaleSetter.h" | 15 #include "GrAutoLocaleSetter.h" |
| 16 #include "GrBatch.h" | |
| 17 #include "GrBatchTest.h" | 16 #include "GrBatchTest.h" |
| 18 #include "GrContextFactory.h" | 17 #include "GrContextFactory.h" |
| 19 #include "GrInvariantOutput.h" | 18 #include "GrInvariantOutput.h" |
| 20 #include "GrPipeline.h" | 19 #include "GrPipeline.h" |
| 21 #include "GrResourceProvider.h" | 20 #include "GrResourceProvider.h" |
| 22 #include "GrTest.h" | 21 #include "GrTest.h" |
| 23 #include "GrXferProcessor.h" | 22 #include "GrXferProcessor.h" |
| 24 #include "SkChecksum.h" | 23 #include "SkChecksum.h" |
| 25 #include "SkRandom.h" | 24 #include "SkRandom.h" |
| 26 #include "Test.h" | 25 #include "Test.h" |
| 26 |
| 27 #include "batches/GrBatch.h" |
| 28 |
| 27 #include "effects/GrConfigConversionEffect.h" | 29 #include "effects/GrConfigConversionEffect.h" |
| 28 #include "effects/GrPorterDuffXferProcessor.h" | 30 #include "effects/GrPorterDuffXferProcessor.h" |
| 31 |
| 29 #include "gl/GrGLGpu.h" | 32 #include "gl/GrGLGpu.h" |
| 30 #include "gl/GrGLPathRendering.h" | 33 #include "gl/GrGLPathRendering.h" |
| 31 #include "gl/builders/GrGLProgramBuilder.h" | 34 #include "gl/builders/GrGLProgramBuilder.h" |
| 32 | 35 |
| 33 /* | 36 /* |
| 34 * A dummy processor which just tries to insert a massive key and verify that it
can retrieve the | 37 * A dummy processor which just tries to insert a massive key and verify that it
can retrieve the |
| 35 * whole thing correctly | 38 * whole thing correctly |
| 36 */ | 39 */ |
| 37 static const uint32_t kMaxKeySize = 1024; | 40 static const uint32_t kMaxKeySize = 1024; |
| 38 | 41 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 } | 296 } |
| 294 #endif | 297 #endif |
| 295 GrTestTarget target; | 298 GrTestTarget target; |
| 296 context->getTestTarget(&target); | 299 context->getTestTarget(&target); |
| 297 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context,
maxStages)); | 300 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context,
maxStages)); |
| 298 } | 301 } |
| 299 } | 302 } |
| 300 } | 303 } |
| 301 | 304 |
| 302 #endif | 305 #endif |
| OLD | NEW |