diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-19 19:30:42 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-02-19 19:30:42 +0000 |
commit | d58c9c8b813eb7c441bd2dcf2f36f50bf99670a4 (patch) | |
tree | 173ae234a52768846a4e6023886c623ee4cdc3d6 /bench | |
parent | cbad22b0de917d307ffbb0f82240d75157d86117 (diff) |
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
Diffstat (limited to 'bench')
-rw-r--r-- | bench/HairlinePathBench.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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 |