fix type
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 2 Jul 2012 19:36:47 +0000 (19:36 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 2 Jul 2012 19:36:47 +0000 (19:36 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4428 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkStream.cpp

index f0e52c7efb360fdd7fe4b54ee45e6e4d24e6de35..ff2202d5ae657d56993fbd5b1eef46647b6221e1 100644 (file)
@@ -93,13 +93,13 @@ size_t SkStream::readPackedUInt() {
     }
 }
 
-SkData* SkStream::readStream() {
+SkData* SkStream::readData() {
     size_t size = this->readU32();
     if (0 == size) {
         return SkData::NewEmpty();
     } else {
         void* buffer = sk_malloc_throw(size);
-        stream->read(buffer, size);
+        this->read(buffer, size);
         return SkData::NewFromMalloc(buffer, size);
     }
 }