| 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 "GrContextFactory.h" | 15 #include "GrContextFactory.h" |
| 16 #include "GrInvariantOutput.h" | 16 #include "GrInvariantOutput.h" |
| 17 #include "GrOptDrawState.h" | 17 #include "GrOptDrawState.h" |
| 18 #include "GrTest.h" | 18 #include "GrTest.h" |
| 19 #include "GrXferProcessor.h" | 19 #include "GrXferProcessor.h" |
| 20 #include "SkChecksum.h" | 20 #include "SkChecksum.h" |
| 21 #include "SkRandom.h" | 21 #include "SkRandom.h" |
| 22 #include "Test.h" | 22 #include "Test.h" |
| 23 #include "effects/GrConfigConversionEffect.h" | 23 #include "effects/GrConfigConversionEffect.h" |
| 24 #include "effects/GrPorterDuffXferProcessor.h" | 24 #include "effects/GrPorterDuffXferProcessor.h" |
| 25 #include "gl/GrGLGpu.h" |
| 25 #include "gl/GrGLPathRendering.h" | 26 #include "gl/GrGLPathRendering.h" |
| 26 #include "gl/GrGpuGL.h" | |
| 27 #include "gl/builders/GrGLProgramBuilder.h" | 27 #include "gl/builders/GrGLProgramBuilder.h" |
| 28 | 28 |
| 29 /* | 29 /* |
| 30 * A dummy processor which just tries to insert a massive key and verify that it
can retrieve the | 30 * A dummy processor which just tries to insert a massive key and verify that it
can retrieve the |
| 31 * whole thing correctly | 31 * whole thing correctly |
| 32 */ | 32 */ |
| 33 static const uint32_t kMaxKeySize = 1024; | 33 static const uint32_t kMaxKeySize = 1024; |
| 34 | 34 |
| 35 class GLBigKeyProcessor : public GrGLFragmentProcessor { | 35 class GLBigKeyProcessor : public GrGLFragmentProcessor { |
| 36 public: | 36 public: |
| (...skipping 326 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 |