diff options
author | bsalomon <bsalomon@google.com> | 2015-02-23 09:06:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-23 09:06:38 -0800 |
commit | 6bc1b5fab8554a9cb643277b4867965dd4535cd6 (patch) | |
tree | 3179261534d7db7a8264735b327daa59593e1dd0 /src/effects/SkAlphaThresholdFilter.cpp | |
parent | 42380174ca509e78ab932fa8c6dae953e1eaaa5a (diff) |
Dynamically create stencil buffer when needed.
Review URL: https://codereview.chromium.org/938383004
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index a5b564f57b..f78c9c0b8c 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -273,7 +273,7 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp, } else { maskDesc.fConfig = kRGBA_8888_GrPixelConfig; } - maskDesc.fFlags = kRenderTarget_GrSurfaceFlag | kNoStencil_GrSurfaceFlag; + maskDesc.fFlags = kRenderTarget_GrSurfaceFlag; // Add one pixel of border to ensure that clamp mode will be all zeros // the outside. maskDesc.fWidth = texture->width(); |