diff options
author | vjiaoblack <vjiaoblack@google.com> | 2016-07-21 10:25:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 10:25:54 -0700 |
commit | 95302da19d8b0a3bcd9d9be0e79f486760787f09 (patch) | |
tree | 026a55650eb1678eb9d04b84202c5969eb109776 /tests/CanvasTest.cpp | |
parent | b5dc4051f722d9c65d55eb3a65e0e8d031e107ad (diff) |
Creating framework for drawShadowedPicture
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2146073003
Committed: https://skia.googlesource.com/skia/+/0ae097d116f4332be02a135ffc99c162473dee6a
Review-Url: https://codereview.chromium.org/2146073003
Diffstat (limited to 'tests/CanvasTest.cpp')
-rw-r--r-- | tests/CanvasTest.cpp | 5 |
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 } /////////////////////////////////////////////////////////////////////////////////////////////////// |