diff options
Diffstat (limited to 'include/gpu/GrBackendSurface.h')
-rw-r--r-- | include/gpu/GrBackendSurface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrBackendSurface.h b/include/gpu/GrBackendSurface.h index 76714eca0f..a57edcd9d1 100644 --- a/include/gpu/GrBackendSurface.h +++ b/include/gpu/GrBackendSurface.h @@ -138,6 +138,11 @@ public: // Returns true if the backend texture has been initialized. bool isValid() const { return fConfig != kUnknown_GrPixelConfig; } + /** + * Create a GrBackendFormat object that matches this texture + */ + GrBackendFormat format() const; + GrPixelConfig testingOnly_getPixelConfig() const; private: |