| Index: src/core/SkPaint.cpp
|
| diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp
|
| index 4c4d2489a20a36fa19c479bb8c104ee05b34afb5..62db71445ee160c6917ff8f6cd103c21f47a845e 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;
|
|
|