| Index: src/pipe/SkGPipeWrite.cpp
|
| diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp
|
| index 50043c6a2d55ab686d92e29e06accf18d5a0f2f3..b61de1c912db6c3088048be23042ae405818f715 100644
|
| --- a/src/pipe/SkGPipeWrite.cpp
|
| +++ b/src/pipe/SkGPipeWrite.cpp
|
| @@ -294,7 +294,7 @@ private:
|
|
|
| inline void doNotify() {
|
| if (!fDone) {
|
| - size_t bytes = fWriter.size() - fBytesNotified;
|
| + size_t bytes = fWriter.bytesWritten() - fBytesNotified;
|
| if (bytes > 0) {
|
| fController->notifyWritten(bytes);
|
| fBytesNotified += bytes;
|
| @@ -467,7 +467,7 @@ bool SkGPipeCanvas::needOpBytes(size_t needed) {
|
| }
|
|
|
| needed += 4; // size of DrawOp atom
|
| - if (fWriter.size() + needed > fBlockSize) {
|
| + if (fWriter.bytesWritten() + needed > fBlockSize) {
|
| // Before we wipe out any data that has already been written, read it
|
| // out.
|
| this->doNotify();
|
|
|