| Index: cc/tiles/software_image_decode_controller.cc
|
| diff --git a/cc/tiles/software_image_decode_controller.cc b/cc/tiles/software_image_decode_controller.cc
|
| index 34f5f7244d70ebcd28852495799ad852493b46d2..2a2a2fd45800d4776d451a91c060efdfc88975a4 100644
|
| --- a/cc/tiles/software_image_decode_controller.cc
|
| +++ b/cc/tiles/software_image_decode_controller.cc
|
| @@ -850,9 +850,14 @@ ImageDecodeControllerKey ImageDecodeControllerKey::FromDrawImage(
|
| // If we're not going to do a scale, we can use low filter quality. Note that
|
| // checking if the sizes are the same is better than checking if scale is 1.f,
|
| // because even non-1 scale can result in the same (rounded) width/height.
|
| + // If either dimension is a downscale, then use mipmaps (medium filter
|
| + // quality).
|
| if (target_size.width() == src_rect.width() &&
|
| target_size.height() == src_rect.height()) {
|
| quality = std::min(quality, kLow_SkFilterQuality);
|
| + } else if (target_size.width() < src_rect.width() ||
|
| + target_size.height() < src_rect.height()) {
|
| + quality = std::min(quality, kMedium_SkFilterQuality);
|
| }
|
|
|
| // Drop from high to medium if the the matrix we applied wasn't decomposable,
|
|
|