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

Unified Diff: src/core/SkPictureData.cpp

Issue 1809733002: detach -> release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: (C) Created 4 years, 9 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 | « src/core/SkLightingShader.h ('k') | src/core/SkPictureRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPictureData.cpp
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp
index 0ba28b97e341a3c9a2db08e18bc2888ebea36087..a27c31a2979102f6d984c33a10c6aeea53000ca3 100644
--- a/src/core/SkPictureData.cpp
+++ b/src/core/SkPictureData.cpp
@@ -559,7 +559,7 @@ SkPictureData* SkPictureData::CreateFromStream(SkStream* stream,
if (!data->parseStream(stream, proc, topLevelTFPlayback)) {
return nullptr;
}
- return data.detach();
+ return data.release();
}
SkPictureData* SkPictureData::CreateFromBuffer(SkReadBuffer& buffer,
@@ -570,7 +570,7 @@ SkPictureData* SkPictureData::CreateFromBuffer(SkReadBuffer& buffer,
if (!data->parseBuffer(buffer)) {
return nullptr;
}
- return data.detach();
+ return data.release();
}
bool SkPictureData::parseStream(SkStream* stream,
« no previous file with comments | « src/core/SkLightingShader.h ('k') | src/core/SkPictureRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698