aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-05-18 13:12:34 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-18 13:12:42 +0000
commitc96da1e51e1ca72d54dda49f32891bd41530ad31 (patch)
treeaebd2512cd805ee84047f16f28347c8b28ed960f /include
parent2244bd82d5108ca2c425b6d2d5d314061e89b902 (diff)
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 <robertphillips@google.com> > Commit-Queue: Brian Salomon <bsalomon@google.com> > 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 <egdaniel@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrSurface.h5
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; }