Index: include/gpu/GrDrawContext.h |
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h |
index dd03cf52117d4e951bcc4af7f0030649146d5031..52f8c7ee20589bf249842b534a0552ce80b0330f 100644 |
--- a/include/gpu/GrDrawContext.h |
+++ b/include/gpu/GrDrawContext.h |
@@ -261,9 +261,11 @@ public: |
const GrSurfaceDesc& desc() const { return fRenderTarget->desc(); } |
int width() const { return fRenderTarget->width(); } |
int height() const { return fRenderTarget->height(); } |
+ GrPixelConfig config() const { return fRenderTarget->config(); } |
bool isUnifiedMultisampled() const { return fRenderTarget->isUnifiedMultisampled(); } |
int numColorSamples() const { return fRenderTarget->numColorSamples(); } |
bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); } |
+ const SkSurfaceProps& surfaceProps() const { return fSurfaceProps; } |
bool wasAbandoned() const; |
@@ -283,8 +285,7 @@ protected: |
GrDrawingManager* drawingManager() { return fDrawingManager; } |
GrAuditTrail* auditTrail() { return fAuditTrail; } |
- const SkSurfaceProps& surfaceProps() const { return fSurfaceProps; } |
- |
+ |
SkDEBUGCODE(GrSingleOwner* singleOwner() { return fSingleOwner; }) |
SkDEBUGCODE(void validate() const;) |