diff options
author | Robert Phillips <robertphillips@google.com> | 2017-10-27 15:55:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-30 11:47:28 +0000 |
commit | 511a9d49998ec6a74c375e6cfc55f660f7987c40 (patch) | |
tree | aeed4483c6c5ef50f6bbf7b9b9272a737161811f /src/gpu | |
parent | 2d8d196318a62f1985fc313395695b7c92a6af0f (diff) |
Fix GrDefaultPathRender inversely wound path bug
Bug: 769898
Change-Id: I3b1a43b1e114b35105493a0cfa01a1f01b65fa56
Reviewed-on: https://skia-review.googlesource.com/64065
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/ops/GrDefaultPathRenderer.cpp | 6 | ||||
-rw-r--r-- | src/gpu/ops/GrMSAAPathRenderer.cpp | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/gpu/ops/GrDefaultPathRenderer.cpp b/src/gpu/ops/GrDefaultPathRenderer.cpp index 40631a74ff..4a9f0c2c04 100644 --- a/src/gpu/ops/GrDefaultPathRenderer.cpp +++ b/src/gpu/ops/GrDefaultPathRenderer.cpp @@ -568,8 +568,10 @@ bool GrDefaultPathRenderer::internalDrawPath(GrRenderTargetContext* renderTarget SkScalar srcSpaceTol = GrPathUtils::scaleToleranceToSrc(tol, viewMatrix, path.getBounds()); SkRect devBounds; - GetPathDevBounds(path, renderTargetContext->width(), renderTargetContext->height(), viewMatrix, - &devBounds); + GetPathDevBounds(path, + renderTargetContext->asRenderTargetProxy()->worstCaseWidth(), + renderTargetContext->asRenderTargetProxy()->worstCaseHeight(), + viewMatrix, &devBounds); for (int p = 0; p < passCount; ++p) { if (lastPassIsBounds && (p == passCount-1)) { diff --git a/src/gpu/ops/GrMSAAPathRenderer.cpp b/src/gpu/ops/GrMSAAPathRenderer.cpp index 27d78a782c..50741bc537 100644 --- a/src/gpu/ops/GrMSAAPathRenderer.cpp +++ b/src/gpu/ops/GrMSAAPathRenderer.cpp @@ -637,8 +637,10 @@ bool GrMSAAPathRenderer::internalDrawPath(GrRenderTargetContext* renderTargetCon } SkRect devBounds; - GetPathDevBounds(path, renderTargetContext->width(), renderTargetContext->height(), viewMatrix, - &devBounds); + GetPathDevBounds(path, + renderTargetContext->asRenderTargetProxy()->worstCaseWidth(), + renderTargetContext->asRenderTargetProxy()->worstCaseHeight(), + viewMatrix, &devBounds); SkASSERT(passes[0]); { // First pass |