Index: include/gpu/GrDrawContext.h |
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h |
index 1a7580ea03947db7fb84de27f06545f1fe12fbb2..b8ecca051e189a9455d76f1a175ed80052bbc860 100644 |
--- a/include/gpu/GrDrawContext.h |
+++ b/include/gpu/GrDrawContext.h |
@@ -270,6 +270,7 @@ public: |
int numColorSamples() const { return fRenderTarget->numColorSamples(); } |
bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); } |
const SkSurfaceProps& surfaceProps() const { return fSurfaceProps; } |
+ SkColorSpace* getColorSpace() const { return fColorSpace.get(); } |
bool wasAbandoned() const; |
@@ -286,7 +287,7 @@ public: |
GrAuditTrail* auditTrail() { return fAuditTrail; } |
protected: |
- GrDrawContext(GrContext*, GrDrawingManager*, sk_sp<GrRenderTarget>, |
+ GrDrawContext(GrContext*, GrDrawingManager*, sk_sp<GrRenderTarget>, sk_sp<SkColorSpace>, |
const SkSurfaceProps* surfaceProps, GrAuditTrail*, GrSingleOwner*); |
GrDrawingManager* drawingManager() { return fDrawingManager; } |
@@ -359,6 +360,7 @@ private: |
GrContext* fContext; |
GrInstancedPipelineInfo fInstancedPipelineInfo; |
+ sk_sp<SkColorSpace> fColorSpace; |
SkSurfaceProps fSurfaceProps; |
GrAuditTrail* fAuditTrail; |