diff options
author | Brian Salomon <bsalomon@google.com> | 2017-12-20 13:28:55 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-20 18:47:36 +0000 |
commit | 2fad74a0fdc5eb3f505a052849c3cbeffa6e2d17 (patch) | |
tree | 6a3ec7975dc7ff37a6e8ccfe817fc3ccbd723b18 /src/gpu/GrRenderTargetContext.h | |
parent | 939e6719abb657096b5837d67d594256aa69da45 (diff) |
Make GrRenderTargetContext::drawPath() use GrShape to identify simpler
geometries.
Change-Id: I24230efc8bcb60f00c0c855090e3311ad13d7da8
Reviewed-on: https://skia-review.googlesource.com/85962
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.h')
-rw-r--r-- | src/gpu/GrRenderTargetContext.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h index 304e6bc0bf..902c488461 100644 --- a/src/gpu/GrRenderTargetContext.h +++ b/src/gpu/GrRenderTargetContext.h @@ -30,6 +30,7 @@ class GrFixedClip; class GrRenderTarget; class GrRenderTargetContextPriv; class GrRenderTargetOpList; +class GrShape; class GrStyle; class GrTextureProxy; struct GrUserStencilSettings; @@ -432,8 +433,8 @@ private: const SkRect& rect, const GrUserStencilSettings* ss); - void internalDrawPath( - const GrClip&, GrPaint&&, GrAA, const SkMatrix&, const SkPath&, const GrStyle&); + void drawShapeUsingPathRenderer(const GrClip&, GrPaint&&, GrAA, const SkMatrix&, + const GrShape&); // These perform processing specific to Gr[Mesh]DrawOp-derived ops before recording them into // the op list. They return the id of the opList to which the op was added, or 0, if it was |