Cleanup GrBicubicEffect
authorBrian Osman <brianosman@google.com>
Wed, 21 Dec 2016 20:26:37 +0000 (15:26 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 21 Dec 2016 20:57:11 +0000 (20:57 +0000)
commit0857527e8676083b38975b0a5d0e2f4c19fe76f3
treec4395290f056f411853533337d4162bb1157da15
parent320573f8fc1eddded223eea5b4dbbb6ff0b545ab
Cleanup GrBicubicEffect

- The base class already stores a color space xform, so just forward our
  factory argument and use that one.

- We had factories that took arbitrary coefficients, but they were only
  used in the unit test. Make the assumption of Mitchell's coefficients
  really hard-coded, which lets us skip transposing, storing, comparing,
  etc...

BUG=skia:

Change-Id: Ia1d4f72d32c201cba1da24d61b90250f383336d1
Reviewed-on: https://skia-review.googlesource.com/6394
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
src/gpu/effects/GrBicubicEffect.cpp
src/gpu/effects/GrBicubicEffect.h