Further reduce stack size according to -fstack-usage
It seems that google3 is using -fstack-usage to determine whether
we exceed 16k.
Bug: skia:
Change-Id: I259ff7fc0e6614dde83eb340f0a17efbc52ebf57
Reviewed-on: https://skia-review.googlesource.com/26940
Reviewed-by: Yuqian Li <liyuqian@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
diff --git a/src/core/SkCoverageDelta.h b/src/core/SkCoverageDelta.h
index d12e006..04147e1 100644
--- a/src/core/SkCoverageDelta.h
+++ b/src/core/SkCoverageDelta.h
@@ -43,13 +43,14 @@
// Once sorted, getDelta(y, i) should return the i-th leftmost delta on row y.
class SkCoverageDeltaList {
public:
- // We can store INIT_ROW_SIZE deltas per row (i.e., per y-scanline) initially
#ifndef GOOGLE3
+ // We can store INIT_ROW_SIZE deltas per row (i.e., per y-scanline) initially
static constexpr int INIT_ROW_SIZE = 32;
+ static constexpr int RESERVED_HEIGHT = 128; // reserve this many rows on stack memory
#else
static constexpr int INIT_ROW_SIZE = 8; // google3 has 16k stack limit
+ static constexpr int RESERVED_HEIGHT = 120; // reserve this many rows on stack memory
#endif
- static constexpr int RESERVED_HEIGHT = 128; // reserve this many rows on stack memory
SkCoverageDeltaList(SkCoverageDeltaAllocator* alloc, int top, int bottom, bool forceRLE);