Index: include/gpu/GrDrawContext.h |
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h |
index e0a9b0eedb4b2cdcf24f81272e272ff3a444dfa7..82cf362d5799ecef0899f1b2ba97261cde97ce76 100644 |
--- a/include/gpu/GrDrawContext.h |
+++ b/include/gpu/GrDrawContext.h |
@@ -9,6 +9,7 @@ |
#define GrDrawContext_DEFINED |
#include "GrColor.h" |
+#include "GrRenderTarget.h" |
#include "SkRefCnt.h" |
#include "SkSurfaceProps.h" |
@@ -273,6 +274,10 @@ public: |
*/ |
void drawBatch(const GrClip&, const GrPaint&, GrDrawBatch*); |
+ int width() const { return fRenderTarget->width(); } |
+ int height() const { return fRenderTarget->height(); } |
+ int numColorSamples() const { return fRenderTarget->numColorSamples(); } |
+ |
private: |
friend class GrAtlasTextContext; // for access to drawBatch |
friend class GrDrawingManager; // for ctor |