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

Unified Diff: src/gpu/gl/GrGLShaderBuilder.h

Issue 23537028: Enable vertexless shading when path rendering is supported (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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/GrGLShaderBuilder.h
diff --git a/src/gpu/gl/GrGLShaderBuilder.h b/src/gpu/gl/GrGLShaderBuilder.h
index 42df62ac4583bb62df6870be74719b0ebefa208f..d0bbb4d30c1ba271103b043917aed809123e3cb7 100644
--- a/src/gpu/gl/GrGLShaderBuilder.h
+++ b/src/gpu/gl/GrGLShaderBuilder.h
@@ -168,6 +168,12 @@ public:
const char* body,
SkString* outName);
+ void addTexGenUnit(GrSLType type,
+ SkString* fsInName = NULL,
+ int* unitIdx = NULL,
+ int* numComponents = NULL);
+ int getNumTexGenUnits() { return fNumTexGenUnits; }
+
/** Add input/output variable declarations (i.e. 'varying') to the fragment shader. */
GrGLShaderVar& fsInputAppend() { return fFSInputs.push_back(); }
GrGLShaderVar& fsOutputAppend() { return fFSOutputs.push_back(); }
@@ -488,8 +494,9 @@ private:
GrGLUniformManager::UniformHandle fDstCopyScaleUniform;
bool fTopLeftFragPosRead;
+ int fNumTexGenUnits;
- SkAutoTDelete<VertexBuilder> fVertexBuilder;
+ SkAutoTDelete<VertexBuilder> fVertexBuilder;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698