aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrDrawPathBatch.cpp
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-02-02 12:48:13 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-02 12:48:14 -0800
commitc92159c8250c62cc47b7b63686538d61d54d2835 (patch)
treec1bafdab01881da55d0bd0fdf3a1337ce2af9e0f /src/gpu/batches/GrDrawPathBatch.cpp
parent1497f9f2641b539f0bc45b4f1496ceab7d56b18c (diff)
Move Google3-specific stack limitation logic to template classes. Remove #ifdefs in other files.
Diffstat (limited to 'src/gpu/batches/GrDrawPathBatch.cpp')
-rw-r--r--src/gpu/batches/GrDrawPathBatch.cpp6
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();