aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pipe/SkGPipeWrite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp
index 08c6f49a39..5d359889a2 100644
--- a/src/pipe/SkGPipeWrite.cpp
+++ b/src/pipe/SkGPipeWrite.cpp
@@ -67,9 +67,9 @@ static size_t writeTypeface(SkWriter32* writer, SkTypeface* typeface) {
if (writer) {
writer->write32(size);
SkAutoDataUnref data(stream.copyToData());
- writer->write(data.data(), size);
+ writer->writePad(data.data(), size);
}
- return 4 + size;
+ return 4 + SkAlign4(size);
}
///////////////////////////////////////////////////////////////////////////////