Index: src/gpu/batches/GrAAStrokeRectBatch.cpp |
diff --git a/src/gpu/batches/GrAAStrokeRectBatch.cpp b/src/gpu/batches/GrAAStrokeRectBatch.cpp |
index 0083aaad6c7a13ca90155bf50ed8b10084bf4227..91ff230f0dc78b577b694409db40e28f5b51abec 100644 |
--- a/src/gpu/batches/GrAAStrokeRectBatch.cpp |
+++ b/src/gpu/batches/GrAAStrokeRectBatch.cpp |
@@ -204,13 +204,13 @@ const GrIndexBuffer* GrAAStrokeRectBatch::GetIndexBuffer(GrResourceProvider* res |
} |
bool GrAAStrokeRectBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) { |
- if (!GrPipeline::CanCombine(*this->pipeline(), this->bounds(), *t->pipeline(), t->bounds(), |
- caps)) { |
+ GrAAStrokeRectBatch* that = t->cast<GrAAStrokeRectBatch>(); |
+ |
+ if (!GrPipeline::CanCombine(*this->pipeline(), this->bounds(), *that->pipeline(), |
+ that->bounds(), caps)) { |
return false; |
} |
- GrAAStrokeRectBatch* that = t->cast<GrAAStrokeRectBatch>(); |
- |
// TODO batch across miterstroke changes |
if (this->miterStroke() != that->miterStroke()) { |
return false; |
@@ -356,7 +356,7 @@ void GrAAStrokeRectBatch::generateAAStrokeRectGeometry(void* vertices, |
#include "GrBatchTest.h" |
-BATCH_TEST_DEFINE(AAStrokeRectBatch) { |
+DRAW_BATCH_TEST_DEFINE(AAStrokeRectBatch) { |
bool miterStroke = random->nextBool(); |
// Create mock stroke rect |