Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 611b556cc00655ac97dcdff3418ec3be4a1e1d06..3df64227a6de169c19ebc6700a02d2a92fb47662 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -469,6 +469,14 @@ void SkPicturePlayback::handleOp(SkReadBuffer* reader, |
canvas->drawRect(rect, *paint); |
} |
} break; |
+ case DRAW_REGION: { |
+ const SkPaint* paint = fPictureData->getPaint(reader); |
+ SkRegion region; |
+ reader->readRegion(®ion); |
+ if (paint) { |
+ canvas->drawRegion(region, *paint); |
+ } |
+ } break; |
case DRAW_RRECT: { |
const SkPaint* paint = fPictureData->getPaint(reader); |
SkRRect rrect; |