Index: tests/CanvasTest.cpp |
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp |
index 70c2c04ffabf511239239fe8fe3cf91ab78582af..82e065f5ac783c28d4e2f2d8fe3c3f83744005f6 100644 |
--- a/tests/CanvasTest.cpp |
+++ b/tests/CanvasTest.cpp |
@@ -813,3 +813,25 @@ DEF_TEST(PaintFilterCanvas_ConsistentState, reporter) { |
REPORTER_ASSERT(reporter, canvas.getClipBounds(&clip1) == filterCanvas.getClipBounds(&clip2)); |
REPORTER_ASSERT(reporter, clip1 == clip2); |
} |
+ |
+/////////////////////////////////////////////////////////////////////////////////////////////////// |
+ |
+#include "SkDeferredCanvas.h" |
+#include "SkDumpCanvas.h" |
+ |
+DEF_TEST(DeferredCanvas, r) { |
+ SkDebugfDumper dumper; |
+ SkDumpCanvas dumpC(&dumper); |
+ |
+ SkDeferredCanvas canvas(&dumpC); |
+ |
+ SkPaint paint; |
+// paint.setShader(SkShader::MakeColorShader(SK_ColorRED)); |
+ |
+ canvas.save(); |
+ canvas.clipRect(SkRect::MakeWH(55, 55)); |
+ canvas.translate(10, 20); |
+ canvas.drawRect(SkRect::MakeWH(50, 50), paint); |
+ canvas.restore(); |
+} |
+ |