From d58c9c8b813eb7c441bd2dcf2f36f50bf99670a4 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 19 Feb 2014 19:30:42 +0000 Subject: Fix bench to compile when SK_SUPPORTS_GPU is not provided as a compiler option In the case that SK_SUPPORTS_GPU is not provided to the compiler, the value is either defined in in the SkUserConfig.h or SkPostConfig.h. Prior to this change HairlinePathBench would test that value before including anything, which led to build errors. BUG=skia: R=djsollen@google.com, bsalomon@google.com Author: cdalton@nvidia.com Review URL: https://codereview.chromium.org/172103007 git-svn-id: http://skia.googlecode.com/svn/trunk@13502 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/HairlinePathBench.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bench/HairlinePathBench.cpp') diff --git a/bench/HairlinePathBench.cpp b/bench/HairlinePathBench.cpp index 16edcc7c17..11faff57f8 100644 --- a/bench/HairlinePathBench.cpp +++ b/bench/HairlinePathBench.cpp @@ -5,10 +5,6 @@ * found in the LICENSE file. */ -#if SK_SUPPORT_GPU -#include "GrTest.h" -#include "GrDrawTargetCaps.h" -#endif #include "SkBenchmark.h" #include "SkCanvas.h" #include "SkPaint.h" @@ -16,6 +12,11 @@ #include "SkShader.h" #include "SkString.h" +#if SK_SUPPORT_GPU +#include "GrTest.h" +#include "GrDrawTargetCaps.h" +#endif + enum Flags { kBig_Flag = 1 << 0, kAA_Flag = 1 << 1 -- cgit v1.2.3