aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasTest.cpp
diff options
context:
space:
mode:
authorGravatar vjiaoblack <vjiaoblack@google.com>2016-07-21 10:25:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-21 10:25:54 -0700
commit95302da19d8b0a3bcd9d9be0e79f486760787f09 (patch)
tree026a55650eb1678eb9d04b84202c5969eb109776 /tests/CanvasTest.cpp
parentb5dc4051f722d9c65d55eb3a65e0e8d031e107ad (diff)
Creating framework for drawShadowedPicture
Diffstat (limited to 'tests/CanvasTest.cpp')
-rw-r--r--tests/CanvasTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp
index 1e5f9e18bc..6182d95ffc 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_EXPERIMENTAL_SHADOWING
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_EXPERIMENTAL_SHADOWING
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
}
///////////////////////////////////////////////////////////////////////////////////////////////////