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:
parent
0e0180a176
commit
1e34b34a6c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user