Index: tests/CanvasTest.cpp |
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp |
index 1e5f9e18bcab8a17525737eb8f9824b72d5ce4d2..a3ff57d2572b69bfed07c75d00ed8cd11838e077 100644 |
--- a/tests/CanvasTest.cpp |
+++ b/tests/CanvasTest.cpp |
@@ -780,7 +780,7 @@ DEF_TEST(Canvas_ClipEmptyPath, reporter) { |
} |
#define SHADOW_TEST_CANVAS_CONST 10 |
- |
+#ifdef SK_USE_SHADOWS |
class SkShadowTestCanvas : public SkPaintFilterCanvas { |
public: |
@@ -817,6 +817,7 @@ private: |
typedef SkPaintFilterCanvas INHERITED; |
}; |
+#endif |
namespace { |
@@ -852,6 +853,7 @@ DEF_TEST(PaintFilterCanvas_ConsistentState, reporter) { |
REPORTER_ASSERT(reporter, canvas.getClipBounds(&clip1) == filterCanvas.getClipBounds(&clip2)); |
REPORTER_ASSERT(reporter, clip1 == clip2); |
+#ifdef SK_USE_SHADOWS |
SkShadowTestCanvas* tCanvas = new SkShadowTestCanvas(100,100, reporter); |
tCanvas->testUpdateDepth(reporter); |
delete(tCanvas); |
@@ -865,6 +867,7 @@ DEF_TEST(PaintFilterCanvas_ConsistentState, reporter) { |
tSCanvas->drawPicture(pic); |
delete(tSCanvas); |
+#endif |
} |
/////////////////////////////////////////////////////////////////////////////////////////////////// |