Rework GrSamplerParams to be more compact and use its own wrap mode enum.

The main change is to make GrSamplerParams smaller by making its enums have byte-sized underlying types. The rest is cosmetic.

Change-Id: Ib71ea50612d24619a85e463826c6b8dfb9b445e3
Reviewed-on: https://skia-review.googlesource.com/43200
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp
index 930e268..03c2b96 100644
--- a/gm/texturedomaineffect.cpp
+++ b/gm/texturedomaineffect.cpp
@@ -125,7 +125,7 @@
                     auto fp = GrTextureDomainEffect::Make(
                             proxy, nullptr, textureMatrices[tm],
                             GrTextureDomain::MakeTexelDomainForMode(texelDomains[d], mode), mode,
-                            GrSamplerParams::kNone_FilterMode);
+                            GrSamplerState::Filter::kNearest);
 
                     if (!fp) {
                         continue;