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

Unified Diff: src/gpu/glsl/GrGLSLVertexShaderBuilder.h

Issue 1462123003: Create GrGLSLVaryingHandler class for program building (Closed) Base URL: https://skia.googlesource.com/skia.git@putCapsOnArgs
Patch Set: fix release builder Created 5 years, 1 month 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 | « src/gpu/glsl/GrGLSLVarying.cpp ('k') | src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/glsl/GrGLSLVertexShaderBuilder.h
diff --git a/src/gpu/glsl/GrGLSLVertexShaderBuilder.h b/src/gpu/glsl/GrGLSLVertexShaderBuilder.h
index 92edd9ae81df5d84531dc6fe5e0451fccedffeb0..b76721fd00b82cf3e4f5b0e0ddbb707f13693129 100644
--- a/src/gpu/glsl/GrGLSLVertexShaderBuilder.h
+++ b/src/gpu/glsl/GrGLSLVertexShaderBuilder.h
@@ -18,26 +18,8 @@ public:
GrGLSLVertexBuilder(GrGLSLProgramBuilder* program);
void transformToNormalizedDeviceSpace(const GrShaderVar& posVar);
- void emitAttributes(const GrGeometryProcessor& gp);
-
- void addAttribute(const GrGeometryProcessor::Attribute* attr) {
- this->addAttribute(GrShaderVar(attr->fName,
- GrVertexAttribTypeToSLType(attr->fType),
- GrShaderVar::kAttribute_TypeModifier,
- GrShaderVar::kNonArray,
- attr->fPrecision));
- }
-
private:
- /*
- * Internal call for GrGLProgramBuilder.addVarying
- */
- void addVarying(const char* name, GrSLPrecision, GrGLSLVarying*);
-
- // an internal call which checks for uniquness of a var before adding it to the list of inputs
- bool addAttribute(const GrShaderVar& var);
-
- void onFinalize() override {}
+ void onFinalize() override;
const char* fRtAdjustName;
« no previous file with comments | « src/gpu/glsl/GrGLSLVarying.cpp ('k') | src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698