commit | 7761d61876ea479dd9672b684fd5c7601932a767 | [log] [tgz] |
---|---|---|
author | robertphillips <robertphillips@google.com> | Mon May 16 09:14:53 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon May 16 09:14:53 2016 -0700 |
tree | 72921edb7fb7083a78f3eff0f5fe61e4de409d33 | |
parent | d584d46c9943c641e0111b969b400be06351a949 [diff] [blame] |
Rename GrDrawingMgr::abandon to wasAbandoned & add a matching entry point to GrDrawingContext Since GrDrawingContext is generally replacing GrRenderTarget, this is to provide functionality similar to GrRenderTarget::wasDestroyed. This is split out of https://codereview.chromium.org/1930013002/ ((Mostly) Retract GrRenderTarget from SkGpuDevice) GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1979913002 Review-Url: https://codereview.chromium.org/1979913002
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h index 1ffa987..7409da3 100644 --- a/include/gpu/GrDrawContext.h +++ b/include/gpu/GrDrawContext.h
@@ -264,6 +264,8 @@ int numColorSamples() const { return fRenderTarget->numColorSamples(); } bool isGammaCorrect() const { return fSurfaceProps.isGammaCorrect(); } + bool wasAbandoned() const; + GrRenderTarget* accessRenderTarget() { return fRenderTarget.get(); } sk_sp<GrRenderTarget> renderTarget() { return fRenderTarget; }