From 1e34b34a6caf16318945b6e933e5017e9ee89d7c Mon Sep 17 00:00:00 2001 From: "scroggo@google.com" Date: Fri, 28 Jun 2013 21:57:51 +0000 Subject: 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 --- platform_tools/nacl/src/nacl_debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform_tools') diff --git a/platform_tools/nacl/src/nacl_debugger.cpp b/platform_tools/nacl/src/nacl_debugger.cpp index 26e3ed67c7..c129ed8432 100644 --- a/platform_tools/nacl/src/nacl_debugger.cpp +++ b/platform_tools/nacl/src/nacl_debugger.cpp @@ -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; -- cgit v1.2.3