Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: include/gpu/GrEffectStage.h

Issue 16406006: Improve batching of drawBitmap* calls (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review issues Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrDrawState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffectStage.h
===================================================================
--- include/gpu/GrEffectStage.h (revision 9486)
+++ include/gpu/GrEffectStage.h (working copy)
@@ -166,7 +166,7 @@
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 @@
return false;
}
+ if (ignoreCoordChange) {
+ // ignore the coordinate change matrix since there are
+ // explicit uv coordinates
+ return true;
+ }
+
if (fCoordChangeMatrixSet != stage.fCoordChangeMatrixSet) {
return false;
}
« no previous file with comments | « no previous file | src/gpu/GrDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698