Index: src/gpu/GrReorderCommandBuilder.cpp |
diff --git a/src/gpu/GrReorderCommandBuilder.cpp b/src/gpu/GrReorderCommandBuilder.cpp |
index 29b450063aa2991090b19256ea2461b7e652002b..2da7f85f898ace8dbf81519c02667231fa980cf1 100644 |
--- a/src/gpu/GrReorderCommandBuilder.cpp |
+++ b/src/gpu/GrReorderCommandBuilder.cpp |
@@ -15,7 +15,8 @@ static bool intersect(const Left& a, const Right& b) { |
a.fTop < b.fBottom && b.fTop < a.fBottom; |
} |
-GrTargetCommands::Cmd* GrReorderCommandBuilder::recordDrawBatch(GrBatch* batch) { |
+GrTargetCommands::Cmd* GrReorderCommandBuilder::recordDrawBatch(GrBatch* batch, |
+ const GrCaps& caps) { |
// Check if there is a Batch Draw we can batch with by linearly searching back until we either |
// 1) check every draw |
// 2) intersect with something |
@@ -58,7 +59,7 @@ GrTargetCommands::Cmd* GrReorderCommandBuilder::recordDrawBatch(GrBatch* batch) |
break; |
} |
// We cannot continue to search backwards if the render target changes |
- if (previous->batch()->combineIfPossible(batch)) { |
+ if (previous->batch()->combineIfPossible(batch, caps)) { |
GrBATCH_INFO("\t\tCombining with (%s, B%u)\n", |
previous->fBatch->name(), previous->fBatch->uniqueID()); |
return NULL; |