| Index: dm/DMSrcSink.cpp
|
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
|
| index 638f6708343ec6c8b24dcb5d35cde124cbfc5452..0778bb3dc8e8f34f881ce6a897d271aa8c7245d7 100644
|
| --- a/dm/DMSrcSink.cpp
|
| +++ b/dm/DMSrcSink.cpp
|
| @@ -201,8 +201,21 @@ 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
|
| + // TODO remove this and add a flag to DM so we can run skps multiple times
|
| +//#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 "";
|
| }
|
|
|
|
|