diff options
author | Hal Canary <halcanary@google.com> | 2017-01-31 13:50:44 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-02 12:49:17 +0000 |
commit | 6f6961ebad65c582318564b3688e78e5c99f3935 (patch) | |
tree | 7144abfca88062d39092c567a006b6787297a50b /tests/GLProgramsTest.cpp | |
parent | 351b045a5e2cbfe41abf4296f9a984ea9ac307e8 (diff) |
make GR_TEST_UTILS=0 work
Change-Id: Icce35140ca08b65217b32e6b1ffc6ad2f38ab37f
Reviewed-on: https://skia-review.googlesource.com/7840
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r-- | tests/GLProgramsTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index e6d738dd59..19f190e8dc 100644 --- a/tests/GLProgramsTest.cpp +++ b/tests/GLProgramsTest.cpp @@ -93,9 +93,11 @@ private: GR_DEFINE_FRAGMENT_PROCESSOR_TEST(BigKeyProcessor); +#if GR_TEST_UTILS sk_sp<GrFragmentProcessor> BigKeyProcessor::TestCreate(GrProcessorTestData*) { return BigKeyProcessor::Make(); } +#endif ////////////////////////////////////////////////////////////////////////////// @@ -164,6 +166,7 @@ static sk_sp<GrRenderTargetContext> random_render_target_context(GrContext* cont return renderTargetContext; } +#if GR_TEST_UTILS static void set_random_xpf(GrPaint* paint, GrProcessorTestData* d) { paint->setXPFactory(GrXPFactoryTestFactory::Get(d)); } @@ -281,7 +284,11 @@ static const GrUserStencilSettings* get_random_stencil(SkRandom* random) { return &kDoesNotWriteStencil; } } +#endif +#if !GR_TEST_UTILS +bool GrDrawingManager::ProgramUnitTest(GrContext*, int) { return true; } +#else bool GrDrawingManager::ProgramUnitTest(GrContext* context, int maxStages) { GrDrawingManager* drawingManager = context->contextPriv().drawingManager(); @@ -378,6 +385,7 @@ bool GrDrawingManager::ProgramUnitTest(GrContext* context, int maxStages) { return true; } +#endif static int get_glprograms_max_stages(GrContext* context) { GrGLGpu* gpu = static_cast<GrGLGpu*>(context->getGpu()); |