Index: src/core/SkTaskGroup.h |
diff --git a/src/core/SkTaskGroup.h b/src/core/SkTaskGroup.h |
index 3af64d775312f999c495302fd332343ad91c8b01..76afe9d92fee7e3ee2d3e6a1dd845128f1782185 100644 |
--- a/src/core/SkTaskGroup.h |
+++ b/src/core/SkTaskGroup.h |
@@ -69,8 +69,13 @@ void sk_parallel_for(int end, const Func& f) { |
nchunks = (end + stride - 1 ) / stride; |
SkASSERT(nchunks <= max_chunks); |
+#if defined(GOOGLE3) |
+ // Stack frame size is limited in GOOGLE3. |
+ SkAutoSTMalloc<512, Chunk> chunks(nchunks); |
+#else |
// With the chunking strategy above this won't malloc until we have a machine with >512 cores. |
SkAutoSTMalloc<1024, Chunk> chunks(nchunks); |
+#endif |
for (int i = 0; i < nchunks; i++) { |
Chunk& c = chunks[i]; |