Add kRGBA_8888_SRGB GrColorType and remove GrSRGBEncoded.

Change-Id: Iad1c72eb81ffd9c006e39c96191fada990d9dbd6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/226224
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrBackendSurface.cpp b/src/gpu/GrBackendSurface.cpp
index 472cd49..8b3e2f1 100644
--- a/src/gpu/GrBackendSurface.cpp
+++ b/src/gpu/GrBackendSurface.cpp
@@ -45,7 +45,7 @@
             break;
 #endif
         case GrBackendApi::kMock:
-            fMock = that.fMock;
+            fMockColorType = that.fMockColorType;
             break;
         default:
             SK_ABORT("Unknown GrBackend");
@@ -154,29 +154,20 @@
 }
 #endif
 
-GrBackendFormat::GrBackendFormat(GrColorType colorType, GrSRGBEncoded srgbEncoded)
+GrBackendFormat::GrBackendFormat(GrColorType colorType)
         : fBackend(GrBackendApi::kMock)
         , fValid(true)
         , fTextureType(GrTextureType::k2D) {
-    fMock.fColorType = colorType;
-    fMock.fSRGBEncoded = srgbEncoded;
+    fMockColorType = colorType;
 }
 
 const GrColorType* GrBackendFormat::getMockColorType() const {
     if (this->isValid() && GrBackendApi::kMock == fBackend) {
-        return &fMock.fColorType;
+        return &fMockColorType;
     }
     return nullptr;
 }
 
-const GrSRGBEncoded* GrBackendFormat::getMockSRGBEncoded() const {
-    if (this->isValid() && GrBackendApi::kMock == fBackend) {
-        return &fMock.fSRGBEncoded;
-    }
-    return nullptr;
-}
-
-
 GrBackendFormat GrBackendFormat::makeTexture2D() const {
     GrBackendFormat copy = *this;
     if (const GrVkYcbcrConversionInfo* ycbcrInfo = this->getVkYcbcrConversionInfo()) {
@@ -217,8 +208,7 @@
 #endif
             break;
         case GrBackendApi::kMock:
-            return fMock.fColorType == that.fMock.fColorType &&
-                   fMock.fSRGBEncoded == that.fMock.fSRGBEncoded;
+            return fMockColorType == that.fMockColorType;
         default:
             SK_ABORT("Unknown GrBackend");
     }