return the bytes read, not the total provided
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 24 May 2011 13:50:21 +0000 (13:50 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 24 May 2011 13:50:21 +0000 (13:50 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1404 2bbb7eff-a529-9590-31e7-b0007b416f81

src/pipe/SkGPipeRead.cpp

index 591b7e9..ecb19fd 100644 (file)
@@ -562,7 +562,7 @@ SkGPipeReader::Status SkGPipeReader::playback(const void* data, size_t length,
     }
 
     if (bytesRead) {
-        *bytesRead = reader.size();
+        *bytesRead = reader.offset();
     }
     return status;
 }