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

Unified Diff: src/gpu/gl/builders/GrGLShaderBuilder.cpp

Issue 519473003: Use highp for gpu bezier effects (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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/builders/GrGLShaderBuilder.cpp
diff --git a/src/gpu/gl/builders/GrGLShaderBuilder.cpp b/src/gpu/gl/builders/GrGLShaderBuilder.cpp
index 4dea14263214c778b396289b7378cc47f36634b9..72fe37ef0a28973702af79e1f6a768411115ebad 100644
--- a/src/gpu/gl/builders/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/builders/GrGLShaderBuilder.cpp
@@ -62,6 +62,12 @@ GrGLShaderBuilder::GrGLShaderBuilder(GrGLProgramBuilder* program)
, fFeaturesAddedMask(0) {
}
+void GrGLShaderBuilder::declAppend(const GrGLShaderVar& var, const GrGLProgramBuilder& builder) {
+ SkString tempDecl;
+ var.appendDecl(builder.ctxInfo(), &tempDecl);
+ this->codeAppendf("%s;\n", tempDecl.c_str());
+}
+
void GrGLShaderBuilder::emitFunction(GrSLType returnType,
const char* name,
int argCnt,
« src/gpu/gl/builders/GrGLShaderBuilder.h ('K') | « src/gpu/gl/builders/GrGLShaderBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698