Type usage improvements in GrTextureProducer classes

Make better use of SkISize and GrImageInfo.

Change-Id: Ie3c9f16d7db05e6527baf1aae4607d74d020ee49
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/250577
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrTextureMaker.cpp b/src/gpu/GrTextureMaker.cpp
index fa428ed..6ee2f75 100644
--- a/src/gpu/GrTextureMaker.cpp
+++ b/src/gpu/GrTextureMaker.cpp
@@ -29,8 +29,8 @@
     if (original) {
         if (!params.isRepeated() ||
             !GrGpu::IsACopyNeededForRepeatWrapMode(this->context()->priv().caps(), original.get(),
-                                                   original->width(), original->height(),
-                                                   params.filter(), &copyParams, scaleAdjust)) {
+                                                   original->dimensions(), params.filter(),
+                                                   &copyParams, scaleAdjust)) {
             needsCopyForMipsOnly = GrGpu::IsACopyNeededForMips(this->context()->priv().caps(),
                                                                original.get(), params.filter(),
                                                                &copyParams);
@@ -41,8 +41,8 @@
     } else {
         if (!params.isRepeated() ||
             !GrGpu::IsACopyNeededForRepeatWrapMode(this->context()->priv().caps(), nullptr,
-                                                   this->width(), this->height(),
-                                                   params.filter(), &copyParams, scaleAdjust)) {
+                                                   this->dimensions(), params.filter(), &copyParams,
+                                                   scaleAdjust)) {
             return this->refOriginalTextureProxy(willBeMipped, AllowedTexGenType::kAny);
         }
     }