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

Unified Diff: src/gpu/GrDrawState.h

Issue 12462008: Add GrEllipseEdgeEffect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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
Index: src/gpu/GrDrawState.h
===================================================================
--- src/gpu/GrDrawState.h (revision 7952)
+++ src/gpu/GrDrawState.h (working copy)
@@ -488,6 +488,10 @@
return effect;
}
+ void setEffectAttribIndices(int stageIdx, const int indices[], int count) {
+ fStages[stageIdx].setVertexAttribIndices(indices, count);
+ }
+
/**
* Creates a GrSimpleTextureEffect.
*/
@@ -514,7 +518,10 @@
return true;
}
- void disableStage(int stageIdx) { this->setEffect(stageIdx, NULL); }
+ void disableStage(int stageIdx) {
+ this->setEffect(stageIdx, NULL);
+ this->setEffectAttribIndices(stageIdx, NULL, 0);
+ }
/**
* Release all the GrEffects referred to by this draw state.
@@ -1021,9 +1028,6 @@
/* Circle specified as center_x, center_y, outer_radius, inner_radius
all in window space (y-down). */
kCircle_EdgeType,
- /* Axis-aligned ellipse specified as center_x, center_y, x_radius, x_radius/y_radius
- all in window space (y-down). */
- kEllipse_EdgeType,
kVertexEdgeTypeCnt
};

Powered by Google App Engine
This is Rietveld 408576698