aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasTest.cpp
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-03-17 15:51:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-20 15:15:33 +0000
commit1a3c4b8cce9b6b4024bca8814be61c94cebabc19 (patch)
tree2e13080d4907317da2480737d1a66aa57e9c08fd /tests/CanvasTest.cpp
parent0dbf042fa50cc01b7447fbecbc3a98d8f3670026 (diff)
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 <herb@google.com> Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/CanvasTest.cpp')
-rw-r--r--tests/CanvasTest.cpp2
1 files changed, 1 insertions, 1 deletions
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));