Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index dfbe2fc46ad1ec1028f3f14642c1629f0a42c9bd..e5bbb8fd918fcf0f4c3da9b0fba595979fb8273b 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -404,7 +404,12 @@ bool GrContext::writeSurfacePixels(GrSurface* surface, |
} |
// temp buffer for doing sw premul conversion, if needed. |
+#if defined(GOOGLE3) |
+ // Stack frame size is limited in GOOGLE3. |
+ SkAutoSTMalloc<48 * 48, uint32_t> tmpPixels(0); |
+#else |
SkAutoSTMalloc<128 * 128, uint32_t> tmpPixels(0); |
+#endif |
if (tempTexture) { |
SkAutoTUnref<const GrFragmentProcessor> fp; |
SkMatrix textureMatrix; |