Index: src/core/SkStream.cpp |
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp |
index 70f97d2f7c7fc1d5e828ef1c376e80dc8f886510..e766a1b35e7c18c52e327b8274ff02d244b51a6e 100644 |
--- a/src/core/SkStream.cpp |
+++ b/src/core/SkStream.cpp |
@@ -806,6 +806,7 @@ void SkDebugWStream::newline() |
{ |
#if defined(SK_DEBUG) || defined(SK_DEVELOPER) |
SkDebugf("\n"); |
+ fBytesWritten++; |
#endif |
} |
@@ -817,6 +818,7 @@ bool SkDebugWStream::write(const void* buffer, size_t size) |
s[size] = 0; |
SkDebugf("%s", s); |
delete[] s; |
+ fBytesWritten += size+1; |
#endif |
hal.canary
2014/03/06 18:23:45
are you sure this isn't just size? printf doesn't
mtklein
2014/03/06 18:28:11
Oh, good catch. This should be += size.
It seems
|
return true; |
} |