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

Unified Diff: src/c/sk_surface.cpp

Issue 1779263003: Make sp variants for SkData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « include/effects/SkColorCubeFilter.h ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/c/sk_surface.cpp
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp
index 6bd62a9aa9f29f47a04ddc6ea7ce46b8607af330..8dd7a6c503c5884b705eeba5573da88b4db21cde 100644
--- a/src/c/sk_surface.cpp
+++ b/src/c/sk_surface.cpp
@@ -677,15 +677,15 @@ sk_maskfilter_t* sk_maskfilter_new_blur(sk_blurstyle_t cstyle, float sigma) {
///////////////////////////////////////////////////////////////////////////////////////////
sk_data_t* sk_data_new_with_copy(const void* src, size_t length) {
- return ToData(SkData::NewWithCopy(src, length));
+ return ToData(SkData::MakeWithCopy(src, length).release());
}
sk_data_t* sk_data_new_from_malloc(const void* memory, size_t length) {
- return ToData(SkData::NewFromMalloc(memory, length));
+ return ToData(SkData::MakeFromMalloc(memory, length).release());
}
sk_data_t* sk_data_new_subset(const sk_data_t* csrc, size_t offset, size_t length) {
- return ToData(SkData::NewSubset(AsData(csrc), offset, length));
+ return ToData(SkData::MakeSubset(AsData(csrc), offset, length).release());
}
void sk_data_ref(const sk_data_t* cdata) {
« no previous file with comments | « include/effects/SkColorCubeFilter.h ('k') | src/core/SkBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698