diff options
author | Robert Phillips <robertphillips@google.com> | 2016-11-14 13:23:15 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-15 15:05:37 +0000 |
commit | fd01ce05ef7902c49b0272b3524a389693c72b35 (patch) | |
tree | e125464b9dff5c2b81e83c3b0ccde65606986b45 /include | |
parent | af49b19582f1f7a55e1300647804212252315b8a (diff) |
Defer more renderTargetContexts in the GPU image filter paths
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4767
Change-Id: I4c1f27247ef340a49d1ac96761810e77e6047ca2
Reviewed-on: https://skia-review.googlesource.com/4767
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContext.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index 6b2c27a773..67f6c93620 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -197,7 +197,8 @@ public: // Create a new render target context as above but have it backed by a deferred-style // GrRenderTargetProxy rather than one that is backed by an actual GrRenderTarget - sk_sp<GrRenderTargetContext> makeDeferredRenderTargetContext(SkBackingFit fit, + sk_sp<GrRenderTargetContext> makeDeferredRenderTargetContext( + SkBackingFit fit, int width, int height, GrPixelConfig config, sk_sp<SkColorSpace> colorSpace, @@ -221,6 +222,18 @@ public: const SkSurfaceProps* surfaceProps = nullptr, SkBudgeted budgeted = SkBudgeted::kYes); + // Create a new render target context as above but have it backed by a deferred-style + // GrRenderTargetProxy rather than one that is backed by an actual GrRenderTarget + sk_sp<GrRenderTargetContext> makeDeferredRenderTargetContextWithFallback( + SkBackingFit fit, + int width, int height, + GrPixelConfig config, + sk_sp<SkColorSpace> colorSpace, + int sampleCnt = 0, + GrSurfaceOrigin origin = kDefault_GrSurfaceOrigin, + const SkSurfaceProps* surfaceProps = nullptr, + SkBudgeted budgeted = SkBudgeted::kYes); + /////////////////////////////////////////////////////////////////////////// // Misc. |