From 472d44e8f881f87449d11ba66515d3c1c5e69891 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Thu, 22 Oct 2015 08:20:00 -0700 Subject: Add version string and force highp NDS transfrom to GLSLCaps This also include the use of any() in the shaders. BUG=skia: Committed: https://skia.googlesource.com/skia/+/cef4bce8e260b49bf3417eadbac806cf7d39cdc8 Review URL: https://codereview.chromium.org/1417993004 --- bench/GLVertexAttributesBench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench/GLVertexAttributesBench.cpp') diff --git a/bench/GLVertexAttributesBench.cpp b/bench/GLVertexAttributesBench.cpp index f8325e4e77..1051c31a9d 100644 --- a/bench/GLVertexAttributesBench.cpp +++ b/bench/GLVertexAttributesBench.cpp @@ -65,7 +65,7 @@ private: GrGLuint GLVertexAttributesBench::setupShader(const GrGLContext* ctx, uint32_t attribs, uint32_t maxAttribs) { - const char* version = GrGLGetGLSLVersionDecl(*ctx); + const char* version = ctx->caps()->glslCaps()->versionDeclString(); // setup vertex shader GrGLSLShaderVar aPosition("a_position", kVec4f_GrSLType, GrShaderVar::kAttribute_TypeModifier); -- cgit v1.2.3