Rename SkSourceGammaTreatment to SkDestinationSurfaceColorMode

This is much more explicit about what that type represents (are we in
legacy mode or not), which also makes it suitable for other (upcoming)
usage.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4529

Change-Id: Iacb397c34e7765f1ca86c0195bc622b2be4d9acf
Reviewed-on: https://skia-review.googlesource.com/4529
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrImageIDTextureAdjuster.cpp b/src/gpu/GrImageIDTextureAdjuster.cpp
index 5a96b6d..cc869ba 100644
--- a/src/gpu/GrImageIDTextureAdjuster.cpp
+++ b/src/gpu/GrImageIDTextureAdjuster.cpp
@@ -30,7 +30,7 @@
 }
 
 GrTexture* GrBitmapTextureMaker::refOriginalTexture(bool willBeMipped,
-                                                    SkSourceGammaTreatment gammaTreatment) {
+                                                    SkDestinationSurfaceColorMode colorMode) {
     GrTexture* tex = nullptr;
 
     if (fOriginalKey.isValid()) {
@@ -40,7 +40,7 @@
         }
     }
     if (willBeMipped) {
-        tex = GrGenerateMipMapsAndUploadToTexture(this->context(), fBitmap, gammaTreatment);
+        tex = GrGenerateMipMapsAndUploadToTexture(this->context(), fBitmap, colorMode);
     }
     if (!tex) {
         tex = GrUploadBitmapToTexture(this->context(), fBitmap);
@@ -88,9 +88,9 @@
 }
 
 GrTexture* GrImageTextureMaker::refOriginalTexture(bool willBeMipped,
-                                                   SkSourceGammaTreatment gammaTreatment) {
+                                                   SkDestinationSurfaceColorMode colorMode) {
     return fCacher->lockTexture(this->context(), fOriginalKey, fClient, fCachingHint, willBeMipped,
-                                gammaTreatment);
+                                colorMode);
 }
 
 void GrImageTextureMaker::makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) {