diff options
author | reed <reed@google.com> | 2016-03-11 13:02:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 13:02:28 -0800 |
commit | fde05114e6c4107b36e1aa571c64d31def40f613 (patch) | |
tree | bb3997b32141ea4984255e833d03cb1caed76904 /src/c | |
parent | 51c8cfc64c7286ad8a392064cd376bb9974c7bc1 (diff) |
Make sp variants for SkData
Review URL: https://codereview.chromium.org/1779263003
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/sk_surface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp index 6bd62a9aa9..8dd7a6c503 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) { |