aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasTest.cpp
diff options
context:
space:
mode:
authorGravatar vjiaoblack <vjiaoblack@google.com>2016-07-21 09:10:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-21 09:10:23 -0700
commit0ae097d116f4332be02a135ffc99c162473dee6a (patch)
treec70d5f33b9753ec7db643eeb4de6cabb927e7ed8 /tests/CanvasTest.cpp
parentd2b6d6486ed9d00df779f6b337d756c9a818006f (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
}
///////////////////////////////////////////////////////////////////////////////////////////////////