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

Unified Diff: src/gpu/gl/GrGLProgram.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/gl/GrGLProgram.h
===================================================================
--- src/gpu/gl/GrGLProgram.h (revision 7952)
+++ src/gpu/gl/GrGLProgram.h (working copy)
@@ -165,6 +165,14 @@
kDualSrcOutputCnt
};
+ struct AttribPair {
+ void set(int index, const char* name) {
+ fIndex = index; fName = name;
+ }
+ int fIndex;
+ const char* fName;
+ };
+
// TODO: remove these two members when edge-aa can be rewritten as a GrEffect.
GrDrawState::VertexEdgeType fVertexEdgeType;
// should the FS discard if the edge-aa coverage is zero (to avoid stencil manipulation)
@@ -194,6 +202,8 @@
int8_t fEdgeAttributeIndex;
int8_t fTexCoordAttributeIndex;
+ SkSTArray<2, AttribPair, true> fEffectAttributes;
+
friend class GrGLProgram;
};

Powered by Google App Engine
This is Rietveld 408576698