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

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: gm ignore 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
« no previous file with comments | « src/gpu/gl/builders/GrGLShaderBuilder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6b3e1d12dd7e3948a365b428520b915df77052c9 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) {
+ SkString tempDecl;
+ var.appendDecl(fProgramBuilder->ctxInfo(), &tempDecl);
+ this->codeAppendf("%s;", tempDecl.c_str());
+}
+
void GrGLShaderBuilder::emitFunction(GrSLType returnType,
const char* name,
int argCnt,
« no previous file with comments | « src/gpu/gl/builders/GrGLShaderBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698