diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-02 21:26:50 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-02 21:26:50 +0000 |
commit | c2099d2707abcc94e139627399aed4b8894b69bb (patch) | |
tree | f66f3a950979a6df3d1abf90088d2cf94942025c /src/gpu/GrPathRenderer.cpp | |
parent | 6a81b8a282dd388044c433a4c2d8e549e7402d01 (diff) |
simplify GrPathRenderer interface
Review URL: http://codereview.appspot.com/5706053/
git-svn-id: http://skia.googlecode.com/svn/trunk@3312 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrPathRenderer.cpp')
-rw-r--r-- | src/gpu/GrPathRenderer.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/src/gpu/GrPathRenderer.cpp b/src/gpu/GrPathRenderer.cpp index a4f7d0cdd9..31e06a6b02 100644 --- a/src/gpu/GrPathRenderer.cpp +++ b/src/gpu/GrPathRenderer.cpp @@ -8,36 +8,6 @@ #include "GrPathRenderer.h" -GrPathRenderer::GrPathRenderer() - : fPath(NULL) - , fTarget(NULL) { +GrPathRenderer::GrPathRenderer() { } -void GrPathRenderer::setPath(GrDrawTarget* target, - const SkPath* path, - GrPathFill fill, - bool antiAlias, - const GrPoint* translate) { - GrAssert(NULL == fPath); - GrAssert(NULL == fTarget); - GrAssert(NULL != target); - - fTarget = target; - fPath = path; - fFill = fill; - fAntiAlias = antiAlias; - if (NULL != translate) { - fTranslate = *translate; - } else { - fTranslate.fX = fTranslate.fY = 0; - } - this->pathWasSet(); -} - -void GrPathRenderer::clearPath() { - this->pathWillClear(); - fTarget->resetVertexSource(); - fTarget->resetIndexSource(); - fTarget = NULL; - fPath = NULL; -} |