Index: src/gpu/gl/GrGLGpu.cpp |
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
index 80f0171f57bb25b3823584f6be3ac6b7323c0cd7..7bbe932c715d299309028a364bc0e2b89f2c8e05 100644 |
--- a/src/gpu/gl/GrGLGpu.cpp |
+++ b/src/gpu/gl/GrGLGpu.cpp |
@@ -625,7 +625,12 @@ bool GrGLGpu::uploadTexData(const GrSurfaceDesc& desc, |
size_t trimRowBytes = width * bpp; |
// in case we need a temporary, trimmed copy of the src pixels |
+#if defined(GOOGLE3) |
+ // Stack frame size is limited in GOOGLE3. |
+ SkAutoSMalloc<64 * 128> tempStorage; |
+#else |
SkAutoSMalloc<128 * 128> tempStorage; |
+#endif |
// We currently lazily create MIPMAPs when the we see a draw with |
// GrTextureParams::kMipMap_FilterMode. Using texture storage requires that the |