From a4e13c85b23fe7530ae89a84ef671ebd5e451e80 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 26 Nov 2012 21:38:37 +0000 Subject: [PATCH] Fix GPU-less build. Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@6554 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/ClipStackTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp index cdb4de0..ac423ed 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) { -- 2.7.4