diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-06-10 22:07:19 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-06-10 22:07:19 +0000 |
commit | 5f9f2b08759827169baeb5dc38a2b6cfd5e1ba76 (patch) | |
tree | f5d92ec26b6ffa0c18cdac91a5311ce9dbf56034 /include/gpu | |
parent | dc1d7270bca4b0e7ce4ff7d3eaa4361aab24e13e (diff) |
Improve batching of drawBitmap* calls
https://codereview.chromium.org/16406006/
git-svn-id: http://skia.googlecode.com/svn/trunk@9499 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrEffectStage.h | 8 |
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; } |