diff options
author | derekf <derekf@osg.samsung.com> | 2014-10-07 14:44:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-07 14:44:34 -0700 |
commit | e6efd39a33a9efa5e20c3289384c0e08ef8c9287 (patch) | |
tree | b25f15db1e2f84d6913e258af5a442bb5ab5fd62 /src | |
parent | db0d3ca07008ea2c1f24d0fd9ceecf10af6ae63b (diff) |
Only use msaa target for blur mask when doAA is true
BUG=skia:2995
Review URL: https://codereview.chromium.org/639523002
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 6a9c31de3f..93c2085d9d 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -650,7 +650,7 @@ bool create_mask_GPU(GrContext* context, desc.fFlags = kRenderTarget_GrTextureFlagBit; desc.fWidth = SkScalarCeilToInt(maskRect.width()); desc.fHeight = SkScalarCeilToInt(maskRect.height()); - desc.fSampleCnt = SampleCnt; + desc.fSampleCnt = doAA ? SampleCnt : 0; // We actually only need A8, but it often isn't supported as a // render target so default to RGBA_8888 desc.fConfig = kRGBA_8888_GrPixelConfig; |