From 1a3c4b8cce9b6b4024bca8814be61c94cebabc19 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Fri, 17 Mar 2017 15:51:53 -0400 Subject: Eager or Lazy evaluation of sub-drawings for SkDeferredCanvas. Allow evaluation choice of Lazy or Eager evaluation for SkDeferredCanvas. Eager is used for drawing to a non-recording canvas to reduce the number of all operations. Lazy is used for drawing to a recording canvas to reduce the amount decode/encode that happens. R=reed@google.com Change-Id: I7837c4f6e5911c153e0796162e1170edbc34839e Reviewed-on: https://skia-review.googlesource.com/9839 Commit-Queue: Herb Derby Reviewed-by: Mike Reed --- tests/CanvasTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/CanvasTest.cpp') diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index f6b275fccc..cfdce628ca 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -741,7 +741,7 @@ DEF_TEST(DeferredCanvas, r) { SkDebugfDumper dumper; SkDumpCanvas dumpC(&dumper); - SkDeferredCanvas canvas(&dumpC); + SkDeferredCanvas canvas(&dumpC, SkDeferredCanvas::kEager); SkPaint paint; // paint.setShader(SkShader::MakeColorShader(SK_ColorRED)); -- cgit v1.2.3