aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkStream.cpp')
-rw-r--r--src/core/SkStream.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp
index c0a73485c3..eb06452fa5 100644
--- a/src/core/SkStream.cpp
+++ b/src/core/SkStream.cpp
@@ -16,7 +16,7 @@
*/
#include "SkStream.h"
-#include "SkDataRef.h"
+#include "SkData.h"
#include "SkFixed.h"
#include "SkString.h"
#include "SkOSFile.h"
@@ -729,9 +729,10 @@ static void sk_free_release_proc(const void* ptr, size_t length, void*) {
sk_free((void*)ptr);
}
-SkDataRef* SkDynamicMemoryWStream::copyToData() const {
- return SkDataRef::NewWithProc(this->detach(), fBytesWritten,
- sk_free_release_proc, NULL);
+SkData* SkDynamicMemoryWStream::copyToData() const {
+ // should rewrite when we remove detach()
+ return SkData::NewWithProc(this->detach(), fBytesWritten,
+ sk_free_release_proc, NULL);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////