Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 638f6708343ec6c8b24dcb5d35cde124cbfc5452..fc43c18fa0983ba41aceef697d65b684870a1351 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -201,8 +201,20 @@ Error SKPSrc::draw(SkCanvas* canvas) const { |
return SkStringPrintf("Couldn't decode %s as a picture.", fPath.c_str()); |
} |
stream.reset((SkStream*)NULL); // Might as well drop this when we're done with it. |
+ |
canvas->clipRect(kSKPViewport); |
+ // Testing TextBlob batching requires that we see individual text blobs more than once |
bsalomon
2015/03/26 17:06:55
revert before landing?
joshualitt
2015/03/26 18:21:43
I'll fix this when I land the better fix to DM. I
|
+//#define DOUBLE_LOOP |
+#ifdef DOUBLE_LOOP |
+ { |
+ SkAutoCanvasRestore acr(canvas, true); |
+#endif |
+ canvas->drawPicture(pic); |
+#ifdef DOUBLE_LOOP |
+ } |
+ canvas->clear(0); |
canvas->drawPicture(pic); |
+#endif |
return ""; |
} |