diff options
author | 2014-02-11 16:30:21 +0000 | |
---|---|---|
committer | 2014-02-11 16:30:21 +0000 | |
commit | e79f320ed6c5ec9f6164ba84be1ff586532e6517 (patch) | |
tree | f3c649d3be2f8d1ebea5f8a2fc438d1b507cdb9f /src/gpu/GrSoftwarePathRenderer.cpp | |
parent | 27d7ede2e64bddeacce4a0d83bc055bf966cce2f (diff) |
Revert of r13384 (Stateful PathRenderer implementation)
https://codereview.chromium.org/142543007/
git-svn-id: http://skia.googlecode.com/svn/trunk@13409 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index 61711c07ce..d0936d6b28 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -11,7 +11,8 @@ #include "GrSWMaskHelper.h" //////////////////////////////////////////////////////////////////////////////// -bool GrSoftwarePathRenderer::canDrawPath(const SkStrokeRec&, +bool GrSoftwarePathRenderer::canDrawPath(const SkPath&, + const SkStrokeRec&, const GrDrawTarget*, bool antiAlias) const { if (!antiAlias || NULL == fContext) { @@ -28,6 +29,7 @@ bool GrSoftwarePathRenderer::canDrawPath(const SkStrokeRec&, } GrPathRenderer::StencilSupport GrSoftwarePathRenderer::onGetStencilSupport( + const SkPath&, const SkStrokeRec&, const GrDrawTarget*) const { return GrPathRenderer::kNoSupport_StencilSupport; @@ -111,7 +113,8 @@ void draw_around_inv_path(GrDrawTarget* target, //////////////////////////////////////////////////////////////////////////////// // return true on success; false on failure -bool GrSoftwarePathRenderer::onDrawPath(const SkStrokeRec& stroke, +bool GrSoftwarePathRenderer::onDrawPath(const SkPath& path, + const SkStrokeRec& stroke, GrDrawTarget* target, bool antiAlias) { @@ -124,16 +127,16 @@ bool GrSoftwarePathRenderer::onDrawPath(const SkStrokeRec& stroke, SkMatrix vm = drawState->getViewMatrix(); SkIRect devPathBounds, devClipBounds; - if (!get_path_and_clip_bounds(target, this->path(), vm, + if (!get_path_and_clip_bounds(target, path, vm, &devPathBounds, &devClipBounds)) { - if (this->path().isInverseFillType()) { + if (path.isInverseFillType()) { draw_around_inv_path(target, devClipBounds, devPathBounds); } return true; } SkAutoTUnref<GrTexture> texture( - GrSWMaskHelper::DrawPathMaskToTexture(fContext, this->path(), stroke, + GrSWMaskHelper::DrawPathMaskToTexture(fContext, path, stroke, devPathBounds, antiAlias, &vm)); if (NULL == texture) { @@ -142,7 +145,7 @@ bool GrSoftwarePathRenderer::onDrawPath(const SkStrokeRec& stroke, GrSWMaskHelper::DrawToTargetWithPathMask(texture, target, devPathBounds); - if (this->path().isInverseFillType()) { + if (path.isInverseFillType()) { draw_around_inv_path(target, devClipBounds, devPathBounds); } |