Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: platform_tools/nacl/src/nacl_debugger.cpp

Issue 18153012: Use CreateFromStream in nacl debugger. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/nacl/src/nacl_debugger.cpp
diff --git a/platform_tools/nacl/src/nacl_debugger.cpp b/platform_tools/nacl/src/nacl_debugger.cpp
index 26e3ed67c725649957eb61c2a1d5939560ec349e..c129ed8432441d6bfb452965d2d2f88ea603a3f7 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698