Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index 24ae2d6087ebd4da20775ca7710072190a42d8e3..298ac98b791a20604188961b7b2dec38d883448d 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -88,8 +88,7 @@ static SkBitmapRegionDecoderInterface* create_brd(Path path, |
if (!encoded) { |
return NULL; |
} |
- return SkBitmapRegionDecoderInterface::CreateBitmapRegionDecoder(new SkMemoryStream(encoded), |
- strategy); |
+ return SkBitmapRegionDecoderInterface::CreateBitmapRegionDecoder(encoded, strategy); |
} |
Error BRDSrc::draw(SkCanvas* canvas) const { |