Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index d16a6353e9d544661d8428778cbe61ed9a1e89f1..59abe7c1143a406b1bb509cada8da5c1e98fd348 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -306,6 +306,12 @@ void SkPicturePlayback::handleOp(SkReader32* reader, |
case DRAW_PAINT: |
canvas->drawPaint(*fPictureData->getPaint(reader)); |
break; |
+ case DRAW_PATCH: { |
+ const SkPaint& paint = *fPictureData->getPaint(reader); |
+ SkPatch patch; |
+ reader->readPatch(&patch); |
+ canvas->drawPatch(patch, paint); |
+ } break; |
case DRAW_PATH: { |
const SkPaint& paint = *fPictureData->getPaint(reader); |
canvas->drawPath(fPictureData->getPath(reader), paint); |