Index: src/core/SkStream.cpp |
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp |
index b834513b4f638477c803d5083e1ac4d441f6f9c7..20e2ae965285acc1d674a6035b7f79d4ff3c5946 100644 |
--- a/src/core/SkStream.cpp |
+++ b/src/core/SkStream.cpp |
@@ -892,7 +892,12 @@ size_t SkCopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream) { |
SkDynamicMemoryWStream tempStream; |
// Arbitrary buffer size. |
+#if defined(GOOGLE3) |
+ // Stack frame size is limited in GOOGLE3. |
+ const size_t bufferSize = 8 * 1024; // 8KB |
+#else |
const size_t bufferSize = 256 * 1024; // 256KB |
+#endif |
char buffer[bufferSize]; |
SkDEBUGCODE(size_t debugLength = 0;) |
do { |