diff options
author | Brian Osman <brianosman@google.com> | 2016-10-27 14:47:55 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-27 19:14:09 +0000 |
commit | 1105224f9701e57ec5ce0354d6a380b664f5c638 (patch) | |
tree | 2b6f3db0bfd99da5e22adabc0da37d9271c8b543 /src/gpu/GrRenderTarget.cpp | |
parent | 6e74412a9cf1ffa44271a55b42f18e8a0813a0a2 (diff) |
Rename GrDrawContext to GrRenderTargetContext
This is in preparation for GrTextureContext and GrSurfaceContext
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4030
Change-Id: Ie58c93052e68f3f1f5fe8d15d63760de274a6fbd
Reviewed-on: https://skia-review.googlesource.com/4030
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTarget.cpp')
-rw-r--r-- | src/gpu/GrRenderTarget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp index d28b2b4191..0bcde3bafe 100644 --- a/src/gpu/GrRenderTarget.cpp +++ b/src/gpu/GrRenderTarget.cpp @@ -10,7 +10,7 @@ #include "GrContext.h" #include "GrContextPriv.h" -#include "GrDrawContext.h" +#include "GrRenderTargetContext.h" #include "GrGpu.h" #include "GrRenderTargetOpList.h" #include "GrRenderTargetPriv.h" @@ -34,13 +34,13 @@ void GrRenderTarget::discard() { return; } - sk_sp<GrDrawContext> drawContext(context->contextPriv().makeWrappedDrawContext(sk_ref_sp(this), - nullptr)); - if (!drawContext) { + sk_sp<GrRenderTargetContext> renderTargetContext( + context->contextPriv().makeWrappedRenderTargetContext(sk_ref_sp(this), nullptr)); + if (!renderTargetContext) { return; } - drawContext->discard(); + renderTargetContext->discard(); } void GrRenderTarget::flagAsNeedingResolve(const SkIRect* rect) { |