aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrDrawContext.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-05-13 11:20:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-13 11:20:46 -0700
commite576874b162f8c66aa6c2e06cb6bc459ccd8b6f9 (patch)
tree8ce401f7abec406f202f01ceedbdaf6af71e77b4 /include/gpu/GrDrawContext.h
parent846c051a4800b3cea341a0195db24297d6d9047f (diff)
Retract GrRenderTarget a bit within SkGpuDevice
Diffstat (limited to 'include/gpu/GrDrawContext.h')
-rw-r--r--include/gpu/GrDrawContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index 04b03d4b60..1ffa987f8a 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -258,6 +258,7 @@ public:
*/
void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*);
+ const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); }
int width() const { return fRenderTarget->width(); }
int height() const { return fRenderTarget->height(); }
int numColorSamples() const { return fRenderTarget->numColorSamples(); }