From c96da1e51e1ca72d54dda49f32891bd41530ad31 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Thu, 18 May 2017 13:12:34 +0000 Subject: Revert "Remove GrSurface::desc() method." This reverts commit 9ac995354428a916df81253e0c0c3f582db18976. Reason for revert: Lots of broken gold images Original change's description: > Remove GrSurface::desc() method. > > Change-Id: If158dee90b3b0f80aa9c674180fbe6abd5b27d3f > Reviewed-on: https://skia-review.googlesource.com/17268 > Reviewed-by: Robert Phillips > Commit-Queue: Brian Salomon > TBR=bsalomon@google.com,robertphillips@google.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Change-Id: I5608c0e287e301aeac81dd3249a5c34d4603fcc6 Reviewed-on: https://skia-review.googlesource.com/17306 Reviewed-by: Greg Daniel Commit-Queue: Greg Daniel --- include/gpu/GrSurface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 @@ -49,6 +49,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. */ -- cgit v1.2.3