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>
This commit is contained in:
parent
39c08ac3be
commit
68dd2a2dcd
@ -43,13 +43,14 @@ using SkCoverageDeltaAllocator = SkSTArenaAlloc<256>;
|
||||
// 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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user