Chromium Code Reviews| Index: dm/DMSrcSink.cpp |
| diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
| index 638f6708343ec6c8b24dcb5d35cde124cbfc5452..f2cff382926054831974e454fb0b7c15418ceeec 100644 |
| --- a/dm/DMSrcSink.cpp |
| +++ b/dm/DMSrcSink.cpp |
| @@ -201,8 +201,19 @@ 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); |
|
robertphillips
2015/03/23 19:03:11
check in disabled ?
// Testing TextBlob batching r
joshualitt
2015/03/23 19:56:08
Acknowledged.
|
| +#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 ""; |
| } |