diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-26 21:38:37 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-26 21:38:37 +0000 |
commit | a4e13c85b23fe7530ae89a84ef671ebd5e451e80 (patch) | |
tree | d3cb71bc5504a948a33580fe6e01fa5ab1f0a854 /tests | |
parent | 51a6286c241c1dc750d263ed9676079c898148b0 (diff) |
Fix GPU-less build.
Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@6554 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ClipStackTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp index cdb4de0a11..ac423ed8d2 100644 --- a/tests/ClipStackTest.cpp +++ b/tests/ClipStackTest.cpp @@ -6,7 +6,9 @@ * found in the LICENSE file. */ #include "Test.h" -#include "GrClipMaskManager.h" +#if SK_SUPPORT_GPU + #include "GrClipMaskManager.h" +#endif #include "SkClipStack.h" #include "SkPath.h" #include "SkRandom.h" @@ -644,6 +646,8 @@ static void test_iter_rect_merging(skiatest::Reporter* reporter) { /////////////////////////////////////////////////////////////////////////////////////////////////// +#if SK_SUPPORT_GPU + typedef void (*AddElementFunc) (const SkRect& rect, bool aa, SkRegion::Op op, SkClipStack* stack); static void add_round_rect(const SkRect& rect, bool aa, SkRegion::Op op, SkClipStack* stack) { @@ -833,6 +837,7 @@ static void test_reduced_clip_stack(skiatest::Reporter* reporter) { } } +#endif /////////////////////////////////////////////////////////////////////////////////////////////////// static void TestClipStack(skiatest::Reporter* reporter) { |