diff options
author | 2016-02-11 06:46:52 -0800 | |
---|---|---|
committer | 2016-02-11 06:46:52 -0800 | |
commit | 1b39f439413c52eb5b172834775104a89eb229aa (patch) | |
tree | b60ad0b1a791040ff3986b5f0f8a82b0dd462f16 /include | |
parent | 84451024bfe06d138629dd7c27cf2ec0f9774dbe (diff) |
Pass a GrContext pointer in GrDrawContext constructor
TBR=bsalomon@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1691503002
Review URL: https://codereview.chromium.org/1691503002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrDrawContext.h | 5 |
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; |