diff options
author | Robert Phillips <robertphillips@google.com> | 2016-10-28 13:25:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-28 18:35:06 +0000 |
commit | c7635fa374b87711e5ccd8222957a8fbdc772f7b (patch) | |
tree | c739d7303f25450cfca3f148458cec509bfa4e8a /src/gpu/GrDrawingManager.h | |
parent | 57a98fc4d595875ca75f906acec8ba508dcb5248 (diff) |
Make GrDrawContext be GrRenderTargetProxy-backed
This is split out of https://codereview.chromium.org/2215323003/ (Start using RenderTargetProxy (omnibus))
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3841
CQ_INCLUDE_TRYBOTS=master.client.skia.android:Test-Android-Clang-Nexus5-GPU-Adreno330-arm-Debug-GN_Android-Trybot
Change-Id: I1a47f19ed1ac0c249e6ccac8db74095d7f456db4
Reviewed-on: https://skia-review.googlesource.com/3841
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrDrawingManager.h')
-rw-r--r-- | src/gpu/GrDrawingManager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrDrawingManager.h b/src/gpu/GrDrawingManager.h index 6b502665bf..3945fe5596 100644 --- a/src/gpu/GrDrawingManager.h +++ b/src/gpu/GrDrawingManager.h @@ -19,6 +19,7 @@ class GrContext; class GrRenderTargetContext; +class GrRenderTargetProxy; class GrSingleOWner; class GrSoftwarePathRenderer; @@ -34,13 +35,13 @@ public: bool wasAbandoned() const { return fAbandoned; } void freeGpuResources(); - sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrRenderTarget> rt, + sk_sp<GrRenderTargetContext> makeRenderTargetContext(sk_sp<GrRenderTargetProxy> rtp, sk_sp<SkColorSpace>, const SkSurfaceProps*); // The caller automatically gets a ref on the returned opList. It must // be balanced by an unref call. - GrRenderTargetOpList* newOpList(GrRenderTarget* rt); + GrRenderTargetOpList* newOpList(GrRenderTargetProxy* rtp); GrContext* getContext() { return fContext; } |