aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrClipStackClip.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-09-11 13:38:55 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-11 17:58:00 +0000
commit5d034744ab749d37a0b4c889271160236ec8be4e (patch)
tree733dea50e748bbfe1f49b0da5bc330268890ad19 /src/gpu/GrClipStackClip.h
parent3b67faa561db3283def904d2458a5b5b12ee4ba6 (diff)
Do software clip mask generation with worker threads
Also refactor the prepare callback stuff to share logic between software path rendering and clip mask generation. Bug: skia: Change-Id: I0c56c6df8703eb59d2d49a4c3985bd4f5ef20f01 Reviewed-on: https://skia-review.googlesource.com/44421 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrClipStackClip.h')
-rw-r--r--src/gpu/GrClipStackClip.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrClipStackClip.h b/src/gpu/GrClipStackClip.h
index 8058c3b8a4..97ea8bc252 100644
--- a/src/gpu/GrClipStackClip.h
+++ b/src/gpu/GrClipStackClip.h
@@ -50,7 +50,8 @@ private:
sk_sp<GrTextureProxy> createAlphaClipMask(GrContext*, const GrReducedClip&) const;
// Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture.
- sk_sp<GrTextureProxy> createSoftwareClipMask(GrContext*, const GrReducedClip&) const;
+ sk_sp<GrTextureProxy> createSoftwareClipMask(GrContext*, const GrReducedClip&,
+ GrRenderTargetContext*) const;
static bool UseSWOnlyPath(GrContext*,
bool hasUserStencilSettings,