Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index c863b455b36ed8ae630424daf503c179cdb8d6b1..b79153064cf08e4d30ee22ce384d6e641c92be91 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -105,6 +105,11 @@ public: |
*/ |
const GrCaps* caps() const { return fGpu->caps(); } |
+ /** |
+ * Gets the pixel config of the underlying render target. |
+ */ |
+ GrPixelConfig config() const { return fRenderTarget->config(); } |
bsalomon
2016/04/13 14:36:23
+Rob
robertphillips
2016/04/13 15:28:45
Commented in person but, can we make the getter mo
|
+ |
void drawBatch(const GrPipelineBuilder&, GrDrawBatch*, const SkIRect* scissorRect = nullptr); |
/** |