aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-02-11 06:46:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-11 06:46:52 -0800
commit1b39f439413c52eb5b172834775104a89eb229aa (patch)
treeb60ad0b1a791040ff3986b5f0f8a82b0dd462f16 /include
parent84451024bfe06d138629dd7c27cf2ec0f9774dbe (diff)
Pass a GrContext pointer in GrDrawContext constructor
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrDrawContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index 9276e2b21f..24e38b8494 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -288,8 +288,8 @@ private:
SkDEBUGCODE(void validate() const;)
- GrDrawContext(GrDrawingManager*, GrRenderTarget*, const SkSurfaceProps* surfaceProps,
- GrAuditTrail*, GrSingleOwner*);
+ GrDrawContext(GrContext*, GrDrawingManager*, GrRenderTarget*,
+ const SkSurfaceProps* surfaceProps, GrAuditTrail*, GrSingleOwner*);
void internalDrawPath(GrPipelineBuilder*,
const SkMatrix& viewMatrix,
@@ -311,6 +311,7 @@ private:
// it up. For this reason, the drawTarget should only ever be accessed via 'getDrawTarget'.
GrDrawTarget* fDrawTarget;
GrTextContext* fTextContext; // lazily gotten from GrContext::DrawingManager
+ GrContext* fContext;
SkSurfaceProps fSurfaceProps;
GrAuditTrail* fAuditTrail;