diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-16 09:21:54 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-16 14:02:34 +0000 |
commit | 859621fadbbbecf2dd40dc89f93f61bfb8ab6ead (patch) | |
tree | 52de837b31a0a1fdae945dd64fef903aad35e394 /src | |
parent | b64bcbdc3a5aa7b9e3ff216e4617ddc1db9260b5 (diff) |
Outset dst texture bounds by a pixel to fix corruption in dstreadshuffle.
BUG=skia:6380
Change-Id: I90ed1a6e942bcc44f246795aeb8f87922e0ddddf
Reviewed-on: https://skia-review.googlesource.com/9785
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrRenderTargetContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp index 8c231429fe..8cc383dc3e 100644 --- a/src/gpu/GrRenderTargetContext.cpp +++ b/src/gpu/GrRenderTargetContext.cpp @@ -1753,6 +1753,8 @@ void GrRenderTargetContext::setupDstTexture(GrRenderTarget* rt, const GrClip& cl SkIRect drawIBounds; opBounds.roundOut(&drawIBounds); + // Cover up for any precision issues by outsetting the op bounds a pixel in each direction. + drawIBounds.outset(1, 1); if (!copyRect.intersect(drawIBounds)) { #ifdef SK_DEBUG GrCapsDebugf(this->caps(), "Missed an early reject. " |