diff options
-rw-r--r-- | src/core/SkPaint.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp index 4c4d2489a2..62db71445e 100644 --- a/src/core/SkPaint.cpp +++ b/src/core/SkPaint.cpp @@ -1850,7 +1850,8 @@ void SkPaint::descriptorProc(const SkDeviceProperties* deviceProperties, } #ifdef SK_BUILD_FOR_ANDROID - SkWriteBuffer androidBuffer; + char buffer[128]; + SkWriteBuffer androidBuffer(buffer, sizeof(buffer)); fPaintOptionsAndroid.flatten(androidBuffer); descSize += androidBuffer.bytesWritten(); entryCount += 1; |