Use CreateFromStream in nacl debugger.

Review URL: https://codereview.chromium.org/18153012

git-svn-id: http://skia.googlecode.com/svn/trunk@9824 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
scroggo@google.com 2013-06-28 21:57:51 +00:00
parent 0e0180a176
commit 1e34b34a6c

View File

@ -68,7 +68,7 @@ public:
return;
}
SkMemoryStream pictureStream(decodedData.getData(), decodedSize);
fPicture = new SkPicture(&pictureStream);
fPicture = SkPicture::CreateFromStream(&pictureStream);
if (fPicture->width() == 0 || fPicture->height() == 0) {
SkDebugf("Failed to create SKP.\n");
return;