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

Unified Diff: src/core/SkPicture.cpp

Issue 481743003: Always read .skp files and other serialized pictures into SkRecord. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Try to placate 10.6 compiler. Created 6 years, 4 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: src/core/SkPicture.cpp
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 469a2083a7d1cb92882d8a3abf0b3ee287a5af8b..70c1f67e19254209ef681dd6568f540bfbb20399 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -431,7 +431,8 @@ SkPicture* SkPicture::CreateFromStream(SkStream* stream, InstallPixelRefProc pro
if (NULL == data) {
return NULL;
}
- return Forwardport(SkPicture(data, info.fWidth, info.fHeight));
+ const SkPicture src(data, info.fWidth, info.fHeight);
+ return Forwardport(src);
}
return NULL;
@@ -451,7 +452,8 @@ SkPicture* SkPicture::CreateFromBuffer(SkReadBuffer& buffer) {
if (NULL == data) {
return NULL;
}
- return Forwardport(SkPicture(data, info.fWidth, info.fHeight));
+ const SkPicture src(data, info.fWidth, info.fHeight);
+ return Forwardport(src);
}
return NULL;
« 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