Move the rt adjust uniform into GP EmitArgs
authorcsmartdalton <csmartdalton@google.com>
Mon, 13 Feb 2017 22:45:35 +0000 (15:45 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 13 Feb 2017 23:21:35 +0000 (23:21 +0000)
commit936f81b95882be2e171a623b3116cc2ff408c813
tree339761c23c6bbed0d495212a5854c2c22ab374d2
parented4984bf53b90e50acad606aeb4b35340db802a3
Move the rt adjust uniform into GP EmitArgs

The GP will likely require this value when dealing with a geometry
shader. In the future we may wish to either switch to device-space
geometry shaders, or else put this value in an "sk_" builtin.

BUG=skia:

Change-Id: I8dff88fc219feef84d39fb7bbd08f3b5686f53d2
Reviewed-on: https://skia-review.googlesource.com/8362
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
src/gpu/glsl/GrGLSLGeometryProcessor.cpp
src/gpu/glsl/GrGLSLPrimitiveProcessor.h
src/gpu/glsl/GrGLSLProgramBuilder.cpp
src/gpu/glsl/GrGLSLProgramBuilder.h
src/gpu/glsl/GrGLSLVertexShaderBuilder.cpp
src/gpu/glsl/GrGLSLVertexShaderBuilder.h