Implement textured gradients
Also clones SkGradientBitmapCache into GrGradientBitmapCache in the
gpu/gradients folder. But after cleaning up the old gradient code,
SkGradientBitmapCache will go away and SkGradientShader will have no
reference to the bitmap cache or support for building bitmaps.
The "new" GrGradientBitmapCache has been updated to hide the thread
safety responsibilities and gradient bitmap generation code that had
originally been a part of SkGradientShader.
Bug: skia:
Change-Id: Ida134c6437c866439fac44fa453d09a6a11549e7
Reviewed-on: https://skia-review.googlesource.com/150917
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/gn/gpu.gni b/gn/gpu.gni
index ffb5255..873f01e 100644
--- a/gn/gpu.gni
+++ b/gn/gpu.gni
@@ -405,6 +405,8 @@
"$_src/gpu/gradients/GrDualIntervalGradientColorizer.h",
"$_src/gpu/gradients/GrSingleIntervalGradientColorizer.cpp",
"$_src/gpu/gradients/GrSingleIntervalGradientColorizer.h",
+ "$_src/gpu/gradients/GrTextureGradientColorizer.cpp",
+ "$_src/gpu/gradients/GrTextureGradientColorizer.h",
"$_src/gpu/gradients/GrLinearGradientLayout.cpp",
"$_src/gpu/gradients/GrLinearGradientLayout.h",
"$_src/gpu/gradients/GrRadialGradientLayout.cpp",
@@ -417,6 +419,8 @@
"$_src/gpu/gradients/GrClampedGradientEffect.h",
"$_src/gpu/gradients/GrTiledGradientEffect.cpp",
"$_src/gpu/gradients/GrTiledGradientEffect.h",
+ "$_src/gpu/gradients/GrGradientBitmapCache.cpp",
+ "$_src/gpu/gradients/GrGradientBitmapCache.h",
"$_src/gpu/gradients/GrGradientShader.cpp",
"$_src/gpu/gradients/GrGradientShader.h",