Index: include/core/SkWriteBuffer.h |
diff --git a/include/core/SkWriteBuffer.h b/include/core/SkWriteBuffer.h |
index 332dfaea40e56d48a1e3f1dc37ab8cdecf11077d..04acbf10cbbd384a9d0d5b949fdf434c2045ac74 100644 |
--- a/include/core/SkWriteBuffer.h |
+++ b/include/core/SkWriteBuffer.h |
@@ -58,7 +58,7 @@ public: |
void write32(int32_t value); |
void writeString(const char* value); |
void writeEncodedString(const void* value, size_t byteLength, SkPaint::TextEncoding encoding); |
- void writeFunctionPtr(void* ptr) { this->writeByteArray(&ptr, sizeof(ptr)); } |
+ void writeFunctionPtr(void* ptr) { fWriter.writePtr(ptr); } |
void writeFlattenable(const SkFlattenable* flattenable); |
void writeColor(const SkColor& color); |