From c7ad40f76f6f23b3acd73b53e989220fd71f2da2 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 31 May 2018 14:27:17 -0400 Subject: Remove SK_SUPPORT_GPU checks in tool-only code Most of this is (obviously) not necessary to do, but once I started, I figured I'd just get it all. Tools (nanobench, DM, skiaserve), all GMs, benches, and unit tests, plus support code (command line parsing and config stuff). This is almost entirely mechanical. Bug: skia: Change-Id: I209500f8df8c5bd43f8298ff26440d1c4d7425fb Reviewed-on: https://skia-review.googlesource.com/131153 Reviewed-by: Mike Klein Reviewed-by: Brian Salomon Commit-Queue: Brian Osman --- tests/BlendTest.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests/BlendTest.cpp') diff --git a/tests/BlendTest.cpp b/tests/BlendTest.cpp index 5b2f6faa14..74e6a8f8de 100644 --- a/tests/BlendTest.cpp +++ b/tests/BlendTest.cpp @@ -19,7 +19,6 @@ #include "SkTypes.h" #include "Test.h" -#if SK_SUPPORT_GPU #include "GrBackendSurface.h" #include "GrContext.h" #include "GrContextFactory.h" @@ -27,7 +26,6 @@ #include "GrResourceProvider.h" #include "GrTexture.h" #include "GrTypes.h" -#endif #include @@ -87,7 +85,6 @@ DEF_TEST(Blend_byte_multiply, r) { for (auto multiply : perfect) { REPORTER_ASSERT(r, test(multiply).diffs == 0); } } -#if SK_SUPPORT_GPU namespace { static sk_sp create_gpu_surface_backend_texture_as_render_target( GrContext* context, int sampleCnt, int width, int height, SkColorType colorType, @@ -206,4 +203,3 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ES2BlendWithNoTexture, reporter, ctxInfo) backingSurface.reset(); } } -#endif -- cgit v1.2.3