Add new style key information to several core effects

Covers some common geometry processors, texture effect, etc.

This also rearranges how fp keys are arranged in the overall key. We no
longer include the key size as part of the key - this made no sense.
Instead, we explicitly include the number of children. We also put all
data for one fp before any children, so the tree can be reconstructed
more-or-less top-down.

Finally, added an "addBool" helper that reads nicer than addBits(1)
everywhere.

Bug: skia:11372
Change-Id: I4e35257fb5923d88fe6d7522109a0b3f4c4017d4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379059
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/gradients/generated/GrTwoPointConicalGradientLayout.cpp b/src/gpu/gradients/generated/GrTwoPointConicalGradientLayout.cpp
index 62ef4ec..af4356a 100644
--- a/src/gpu/gradients/generated/GrTwoPointConicalGradientLayout.cpp
+++ b/src/gpu/gradients/generated/GrTwoPointConicalGradientLayout.cpp
@@ -151,11 +151,11 @@
 void GrTwoPointConicalGradientLayout::onGetGLSLProcessorKey(const GrShaderCaps& caps,
                                                             GrProcessorKeyBuilder* b) const {
     b->addBits(2, (uint32_t)type, "type");
-    b->addBits(1, (uint32_t)isRadiusIncreasing, "isRadiusIncreasing");
-    b->addBits(1, (uint32_t)isFocalOnCircle, "isFocalOnCircle");
-    b->addBits(1, (uint32_t)isWellBehaved, "isWellBehaved");
-    b->addBits(1, (uint32_t)isSwapped, "isSwapped");
-    b->addBits(1, (uint32_t)isNativelyFocal, "isNativelyFocal");
+    b->addBool(isRadiusIncreasing, "isRadiusIncreasing");
+    b->addBool(isFocalOnCircle, "isFocalOnCircle");
+    b->addBool(isWellBehaved, "isWellBehaved");
+    b->addBool(isSwapped, "isSwapped");
+    b->addBool(isNativelyFocal, "isNativelyFocal");
 }
 bool GrTwoPointConicalGradientLayout::onIsEqual(const GrFragmentProcessor& other) const {
     const GrTwoPointConicalGradientLayout& that = other.cast<GrTwoPointConicalGradientLayout>();