From 88d99c63878c2d3d340120f0321676f72afcb4f0 Mon Sep 17 00:00:00 2001 From: Ethan Nicholas Date: Wed, 16 Aug 2017 16:41:30 -0400 Subject: Switched highp float to highfloat and mediump float to half. The ultimate goal is to end up with "float" and "half", but this intermediate step uses "highfloat" so that it is clear if I missed a "float" somewhere. Once this lands, a subsequent CL will switch all "highfloats" back to "floats". Bug: skia: Change-Id: Ia13225c7a0a0a2901e07665891c473d2500ddcca Reviewed-on: https://skia-review.googlesource.com/31000 Commit-Queue: Ethan Nicholas Reviewed-by: Brian Salomon --- tests/GrPipelineDynamicStateTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/GrPipelineDynamicStateTest.cpp') diff --git a/tests/GrPipelineDynamicStateTest.cpp b/tests/GrPipelineDynamicStateTest.cpp index 2049ccb182..15c76c0136 100644 --- a/tests/GrPipelineDynamicStateTest.cpp +++ b/tests/GrPipelineDynamicStateTest.cpp @@ -91,11 +91,11 @@ class GLSLPipelineDynamicStateTestProcessor : public GrGLSLGeometryProcessor { varyingHandler->addPassThroughAttribute(&mp.fColor, args.fOutputColor); GrGLSLVertexBuilder* v = args.fVertBuilder; - v->codeAppendf("float2 vertex = %s;", mp.fVertex.fName); - gpArgs->fPositionVar.set(kVec2f_GrSLType, "vertex"); + v->codeAppendf("highfloat2 vertex = %s;", mp.fVertex.fName); + gpArgs->fPositionVar.set(kHighFloat2_GrSLType, "vertex"); GrGLSLPPFragmentBuilder* f = args.fFragBuilder; - f->codeAppendf("%s = float4(1);", args.fOutputCoverage); + f->codeAppendf("%s = half4(1);", args.fOutputCoverage); } }; -- cgit v1.2.3