diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrBackendSurface.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/gpu/GrBackendSurface.h b/include/gpu/GrBackendSurface.h index 0145dc44c0..7bab31d0dd 100644 --- a/include/gpu/GrBackendSurface.h +++ b/include/gpu/GrBackendSurface.h @@ -138,7 +138,10 @@ public: // Returns true if the backend texture has been initialized. bool isValid() const { return fConfig != kUnknown_GrPixelConfig; } - GrPixelConfig testingOnly_getPixelConfig() const; +#if GR_TEST_UTILS + GrPixelConfig getPixelConfig() const { return fConfig; } + void setPixelConfig(GrPixelConfig config) { fConfig = config; } +#endif private: // Friending for access to the GrPixelConfig @@ -149,6 +152,7 @@ private: friend class GrGpu; friend class GrGLGpu; friend class GrVkGpu; + friend class PromiseImageHelper; GrPixelConfig config() const { return fConfig; } int fWidth; //<! width in pixels @@ -224,7 +228,10 @@ public: // Returns true if the backend texture has been initialized. bool isValid() const { return fConfig != kUnknown_GrPixelConfig; } - GrPixelConfig testingOnly_getPixelConfig() const; +#if GR_TEST_UTILS + GrPixelConfig getPixelConfig() const { return fConfig; } + void setPixelConfig(GrPixelConfig config) { fConfig = config; } +#endif private: // Friending for access to the GrPixelConfig |