Don't pass uniform arrays in GrGLNonlinearColorSpaceXformEffect
authorChristopher Cameron <ccameron@chromium.org>
Mon, 22 May 2017 23:46:36 +0000 (16:46 -0700)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 23 May 2017 17:34:32 +0000 (17:34 +0000)
commitccb46aaef838e1bd9d2feb249fb65aa935d7dc2c
tree64d07721234d018379cefd3e8b97130d2e7398dd
parent87db00111596d432908882a13982adde79793a7c
Don't pass uniform arrays in GrGLNonlinearColorSpaceXformEffect

This avoids a problem where passing a uniform array as a function
array sometimes gets lost.

Instead of passing the uniform array as an argument to the
transfer function evaluation function, create two separate
transfer function evaluation functions that read the uniforms
directly.

BUG=723133

Change-Id: Ib46b99efdbc04ce0201644ebbc1dfd4cb27e9276
Reviewed-on: https://skia-review.googlesource.com/17293
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
src/gpu/effects/GrNonlinearColorSpaceXformEffect.cpp