diff options
author | 2016-02-02 12:48:13 -0800 | |
---|---|---|
committer | 2016-02-02 12:48:14 -0800 | |
commit | c92159c8250c62cc47b7b63686538d61d54d2835 (patch) | |
tree | c1bafdab01881da55d0bd0fdf3a1337ce2af9e0f /src/gpu/batches/GrDrawPathBatch.cpp | |
parent | 1497f9f2641b539f0bc45b4f1496ceab7d56b18c (diff) |
Move Google3-specific stack limitation logic to template classes. Remove #ifdefs in other files.
Does not change the public API.
TBR=reed
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1656143003
Review URL: https://codereview.chromium.org/1656143003
Diffstat (limited to 'src/gpu/batches/GrDrawPathBatch.cpp')
-rw-r--r-- | src/gpu/batches/GrDrawPathBatch.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gpu/batches/GrDrawPathBatch.cpp b/src/gpu/batches/GrDrawPathBatch.cpp index ff62539932..a99f4ebf43 100644 --- a/src/gpu/batches/GrDrawPathBatch.cpp +++ b/src/gpu/batches/GrDrawPathBatch.cpp @@ -137,14 +137,8 @@ void GrDrawPathRangeBatch::onDraw(GrBatchFlushState* state) { instances.count()); } else { int floatsPerTransform = GrPathRendering::PathTransformSize(this->transformType()); -#if defined(GOOGLE3) - //Stack frame size is limited in GOOGLE3. - SkAutoSTMalloc<512, float> transformStorage(floatsPerTransform * fTotalPathCount); - SkAutoSTMalloc<256, uint16_t> indexStorage(fTotalPathCount); -#else SkAutoSTMalloc<4096, float> transformStorage(floatsPerTransform * fTotalPathCount); SkAutoSTMalloc<2048, uint16_t> indexStorage(fTotalPathCount); -#endif int idx = 0; for (DrawList::Iter iter(fDraws); iter.get(); iter.next()) { const Draw& draw = *iter.get(); |