diff options
Diffstat (limited to 'include/gpu/GrSurface.h')
-rw-r--r-- | include/gpu/GrSurface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/GrSurface.h b/include/gpu/GrSurface.h index 6626765d6a..b6d1c50e73 100644 --- a/include/gpu/GrSurface.h +++ b/include/gpu/GrSurface.h @@ -50,6 +50,11 @@ public: GrPixelConfig config() const { return fDesc.fConfig; } /** + * Return the descriptor describing the surface. + */ + const GrSurfaceDesc& desc() const { return fDesc; } + + /** * @return the texture associated with the surface, may be null. */ virtual GrTexture* asTexture() { return nullptr; } |