aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-10 22:07:19 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-10 22:07:19 +0000
commit5f9f2b08759827169baeb5dc38a2b6cfd5e1ba76 (patch)
treef5d92ec26b6ffa0c18cdac91a5311ce9dbf56034 /include/gpu
parentdc1d7270bca4b0e7ce4ff7d3eaa4361aab24e13e (diff)
Improve batching of drawBitmap* calls
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrEffectStage.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h
index 7b8852b2cf..0ef334e439 100644
--- a/include/gpu/GrEffectStage.h
+++ b/include/gpu/GrEffectStage.h
@@ -166,7 +166,7 @@ public:
SkSafeUnref(oldEffectRef);
}
- bool isEqual(const GrEffectStage& stage) const {
+ bool isEqual(const GrEffectStage& stage, bool ignoreCoordChange) const {
if (NULL == stage.fEffectRef) {
return NULL == fEffect;
} else if (NULL == fEffect) {
@@ -182,6 +182,12 @@ public:
return false;
}
+ if (ignoreCoordChange) {
+ // ignore the coordinate change matrix since there are
+ // explicit uv coordinates
+ return true;
+ }
+
if (fCoordChangeMatrixSet != stage.fCoordChangeMatrixSet) {
return false;
}