diff options
-rw-r--r-- | include/utils/mac/SkCGUtils.h | 3 | ||||
-rw-r--r-- | src/utils/mac/SkStream_mac.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/utils/mac/SkCGUtils.h b/include/utils/mac/SkCGUtils.h index 84b95a4aac..54c858c1ae 100644 --- a/include/utils/mac/SkCGUtils.h +++ b/include/utils/mac/SkCGUtils.h @@ -61,6 +61,7 @@ bool SkPDFDocumentToBitmap(SkStream* stream, SkBitmap* output); * Now when the provider is finally deleted, it will delete the stream. */ CGDataProviderRef SkCreateDataProviderFromStream(SkStream*); -CGDataProviderRef SkCreateDataProviderFromStream(SkData*); + +CGDataProviderRef SkCreateDataProviderFromData(SkData*); #endif diff --git a/src/utils/mac/SkStream_mac.cpp b/src/utils/mac/SkStream_mac.cpp index 3482a6b01c..62b7622d85 100644 --- a/src/utils/mac/SkStream_mac.cpp +++ b/src/utils/mac/SkStream_mac.cpp @@ -60,7 +60,7 @@ CGDataProviderRef SkCreateDataProviderFromStream(SkStream* stream) { #include "SkData.h" -CGDataProviderRef SkCreateDataProviderFromStream(SkData* data) { +CGDataProviderRef SkCreateDataProviderFromData(SkData* data) { data->ref(); return CGDataProviderCreateWithData(data, data->data(), data->size(), unref_proc); |