aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkWriter32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkWriter32.cpp')
-rw-r--r--src/core/SkWriter32.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkWriter32.cpp b/src/core/SkWriter32.cpp
index a94a92fd88..d2c85876a9 100644
--- a/src/core/SkWriter32.cpp
+++ b/src/core/SkWriter32.cpp
@@ -141,7 +141,7 @@ uint32_t* SkWriter32::reserve(size_t size) {
uint32_t* SkWriter32::peek32(size_t offset) {
SkDEBUGCODE(this->validate();)
-
+
SkASSERT(SkAlign4(offset) == offset);
SkASSERT(offset <= fSize);
@@ -175,11 +175,11 @@ void SkWriter32::rewindToOffset(size_t offset) {
if (fSingleBlock) {
return;
}
-
+
// Similar to peek32, except that we free up any following blocks
Block* block = fHead;
SkASSERT(NULL != block);
-
+
while (offset >= block->fAllocatedSoFar) {
offset -= block->fAllocatedSoFar;
block = block->fNext;
@@ -188,7 +188,7 @@ void SkWriter32::rewindToOffset(size_t offset) {
fTail = block;
block->fAllocatedSoFar = offset;
-
+
// free up any following blocks
SkASSERT(block);
block = block->fNext;