diff options
author | 2012-07-19 19:42:10 +0000 | |
---|---|---|
committer | 2012-07-19 19:42:10 +0000 | |
commit | 5ce42ca157c134977f6b663612b838367d64bd69 (patch) | |
tree | f1b02333475336d6011d4ac5ae34668905809a43 | |
parent | aa72eab5d82d4c2aa9f6f41755a001282443b042 (diff) |
Make GPU linear gradients do bilinear filtering.
This will require GM (and webkit) rebaselines.
Review URL: https://codereview.appspot.com/6431048
git-svn-id: http://skia.googlecode.com/svn/trunk@4680 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 4e3baa3653..c8e34408ae 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -610,11 +610,7 @@ inline bool skPaint2GrPaintShader(SkGpuDevice* dev, break; case SkShader::kLinear_BitmapType: sampler->setCustomStage(SkNEW_ARGS(GrLinearGradient, (texture)))->unref(); - if (skPaint.isFilterBitmap()) { - sampler->setFilter(GrSamplerState::kBilinear_Filter); - } else { - sampler->setFilter(GrSamplerState::kNearest_Filter); - } + sampler->setFilter(GrSamplerState::kBilinear_Filter); break; default: if (skPaint.isFilterBitmap()) { |