aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-24 13:50:21 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-24 13:50:21 +0000
commitac45f00d5a2d2bbb065efbe67a786efc5ddb60c5 (patch)
treed3a7af0c7b9bdc6c081981526828c9bc00d8854f
parent69d05551332e61e22da4bd3b61fc6d065b461d4a (diff)
return the bytes read, not the total provided
git-svn-id: http://skia.googlecode.com/svn/trunk@1404 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--src/pipe/SkGPipeRead.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp
index 591b7e9cd5..ecb19fd059 100644
--- a/src/pipe/SkGPipeRead.cpp
+++ b/src/pipe/SkGPipeRead.cpp
@@ -562,7 +562,7 @@ SkGPipeReader::Status SkGPipeReader::playback(const void* data, size_t length,
}
if (bytesRead) {
- *bytesRead = reader.size();
+ *bytesRead = reader.offset();
}
return status;
}