Remove GrSurfacePriv and GrRenderTargetPriv

No longer needed as GrSurface and GrRenderTarget are private.

Change-Id: I2ec653b2d9daa115233bb7eaa1f2b7f880772c0a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/305730
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrSurface.h b/src/gpu/GrSurface.h
index 213c5d6..2870109 100644
--- a/src/gpu/GrSurface.h
+++ b/src/gpu/GrSurface.h
@@ -15,7 +15,6 @@
 #include "src/gpu/GrGpuResource.h"
 
 class GrRenderTarget;
-class GrSurfacePriv;
 class GrTexture;
 
 class GrSurface : public GrGpuResource {
@@ -68,9 +67,7 @@
     virtual GrRenderTarget* asRenderTarget() { return nullptr; }
     virtual const GrRenderTarget* asRenderTarget() const { return nullptr; }
 
-    /** Access methods that are only to be used within Skia code. */
-    inline GrSurfacePriv surfacePriv();
-    inline const GrSurfacePriv surfacePriv() const;
+    GrInternalSurfaceFlags flags() const { return fSurfaceFlags; }
 
     static size_t ComputeSize(const GrCaps&, const GrBackendFormat&, SkISize dimensions,
                               int colorSamplesPerPixel, GrMipmapped, bool binSize = false);
@@ -118,9 +115,6 @@
         fSurfaceFlags |= GrInternalSurfaceFlags::kReadOnly;
     }
 
-    // Provides access to methods that should be public within Skia code.
-    friend class GrSurfacePriv;
-
     GrSurface(GrGpu* gpu, const SkISize& dimensions, GrProtected isProtected)
             : INHERITED(gpu)
             , fDimensions(dimensions)