diff options
author | robertphillips <robertphillips@google.com> | 2016-08-03 14:26:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-03 14:26:53 -0700 |
commit | 4fd74aec9f6c68c66483bcc6735793440b1ba184 (patch) | |
tree | 2dc927157414e8393d1e31dff5c3fbcd873a883d /src/gpu/GrRenderTarget.cpp | |
parent | 4db3b7969f62f5ddbf32bd812b9510af018ece89 (diff) |
Move GrContext::makeDrawContext to new GrContextPriv object
We don't want external clients to be able to call the wrapping makeDrawContext. The "creating" makeDrawContext needs to be public for external image filters.
The 3 specialized drawContext creators on GrContextPriv (to wrap backend objects) are also to be kept from public use and will be used to remove SkSurface::MakeRenderTargetDirect.
Split out of: https://codereview.chromium.org/2176333002/ (Remove SkSurface::MakeRenderTargetDirect)
TBR=bsalomon@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2211473002
Review-Url: https://codereview.chromium.org/2211473002
Diffstat (limited to 'src/gpu/GrRenderTarget.cpp')
-rw-r--r-- | src/gpu/GrRenderTarget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp index cccf9534f6..a0700a095f 100644 --- a/src/gpu/GrRenderTarget.cpp +++ b/src/gpu/GrRenderTarget.cpp @@ -9,6 +9,7 @@ #include "GrRenderTarget.h" #include "GrContext.h" +#include "GrContextPriv.h" #include "GrDrawContext.h" #include "GrDrawTarget.h" #include "GrGpu.h" @@ -29,7 +30,8 @@ void GrRenderTarget::discard() { return; } - sk_sp<GrDrawContext> drawContext(context->makeDrawContext(sk_ref_sp(this), nullptr)); + sk_sp<GrDrawContext> drawContext(context->contextPriv().makeWrappedDrawContext(sk_ref_sp(this), + nullptr)); if (!drawContext) { return; } |