diff options
author | 2016-09-16 09:53:27 -0700 | |
---|---|---|
committer | 2016-09-16 09:53:28 -0700 | |
commit | faf8203ea7588dcdca82f69f5a5447b3eb53a849 (patch) | |
tree | e547eb6e09f91f44d81cbfb9f772ee5d4ae07a23 | |
parent | 43d6651111374b5d1e4ddd9030dcf079b448ec47 (diff) |
Allow GrCaps access from GrDrawContext
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2348923002
Review-Url: https://codereview.chromium.org/2348923002
-rw-r--r-- | include/gpu/GrDrawContext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h index 5825b9238c..80f4da12cf 100644 --- a/include/gpu/GrDrawContext.h +++ b/include/gpu/GrDrawContext.h @@ -9,6 +9,7 @@ #define GrDrawContext_DEFINED #include "GrColor.h" +#include "GrContext.h" #include "GrPaint.h" #include "GrRenderTarget.h" #include "SkRefCnt.h" @@ -19,7 +20,6 @@ class GrAuditTrail; class GrClip; -class GrContext; class GrDrawBatch; class GrDrawContextPriv; class GrDrawPathBatchBase; @@ -324,6 +324,7 @@ public: return paint.isAntiAlias() && fRenderTarget->isUnifiedMultisampled(); } + const GrCaps* caps() const { return fContext->caps(); } const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); } int width() const { return fRenderTarget->width(); } int height() const { return fRenderTarget->height(); } |