aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkTaskGroup.h
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2015-10-19 13:55:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-19 13:55:55 -0700
commit7d974f5e4f8ded8834b58f560ac6e03aed370310 (patch)
tree7b35daa322d3fe65734f26126824e2173e59bdfd /src/core/SkTaskGroup.h
parent423f6461e98ba28730d05e5894804a4970a09bde (diff)
Modifications to get 'blaze build -c opt //third_party/skia/HEAD/...' to work.
Diffstat (limited to 'src/core/SkTaskGroup.h')
-rw-r--r--src/core/SkTaskGroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkTaskGroup.h b/src/core/SkTaskGroup.h
index 3af64d7753..76afe9d92f 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];