Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: tests/CanvasTest.cpp

Issue 2146073003: Creating framework for drawShadowedPicture (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Made changes to better hide changes from public Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}
///////////////////////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698