diff options
author | robertphillips <robertphillips@google.com> | 2016-07-27 12:13:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-27 12:13:51 -0700 |
commit | 6738c702423226619ee0172c12a3a007c5f68e57 (patch) | |
tree | 96d7941308e92731354cd8e4ef21ecfc900ca7cd /include/gpu | |
parent | 81ce4a9c551f5ecbd549b992b1f1e7689049c615 (diff) |
Rename GrContext's newDrawContext & drawContext to makeDrawContext
These both return sk_sp.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2186073002
Review-Url: https://codereview.chromium.org/2186073002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContext.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index b156ba6173..deddb462d6 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -189,22 +189,22 @@ public: * * @return a draw context */ - sk_sp<GrDrawContext> drawContext(sk_sp<GrRenderTarget> rt, sk_sp<SkColorSpace> colorSpace, - const SkSurfaceProps* = nullptr); + sk_sp<GrDrawContext> makeDrawContext(sk_sp<GrRenderTarget> rt, sk_sp<SkColorSpace> colorSpace, + const SkSurfaceProps* = nullptr); /** * Create both a GrRenderTarget and a matching GrDrawContext to wrap it. * We guarantee that "asTexture" will succeed for drawContexts created * via this entry point. */ - sk_sp<GrDrawContext> newDrawContext(SkBackingFit fit, - int width, int height, - GrPixelConfig config, - sk_sp<SkColorSpace> colorSpace, - int sampleCnt = 0, - GrSurfaceOrigin origin = kDefault_GrSurfaceOrigin, - const SkSurfaceProps* surfaceProps = nullptr, - SkBudgeted = SkBudgeted::kYes); + sk_sp<GrDrawContext> makeDrawContext(SkBackingFit fit, + int width, int height, + GrPixelConfig config, + sk_sp<SkColorSpace> colorSpace, + int sampleCnt = 0, + GrSurfaceOrigin origin = kDefault_GrSurfaceOrigin, + const SkSurfaceProps* surfaceProps = nullptr, + SkBudgeted = SkBudgeted::kYes); /////////////////////////////////////////////////////////////////////////// // Misc. |