aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-09-16 09:53:27 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-16 09:53:28 -0700
commitfaf8203ea7588dcdca82f69f5a5447b3eb53a849 (patch)
treee547eb6e09f91f44d81cbfb9f772ee5d4ae07a23
parent43d6651111374b5d1e4ddd9030dcf079b448ec47 (diff)
Allow GrCaps access from GrDrawContext
-rw-r--r--include/gpu/GrDrawContext.h3
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(); }