| Index: cc/tiles/mipmap_util.cc
|
| diff --git a/cc/tiles/mipmap_util.cc b/cc/tiles/mipmap_util.cc
|
| index d0ffbc9bf8610708622d6d88d2dfdd5fa957809e..ad35d8b0cfbd6abf8060a2c34eb7a8aaf2e804d7 100644
|
| --- a/cc/tiles/mipmap_util.cc
|
| +++ b/cc/tiles/mipmap_util.cc
|
| @@ -55,20 +55,12 @@
|
| if (src_size.width() == 0 || src_size.height() == 0 || mip_level == -1)
|
| return SkSize::Make(-1, -1);
|
|
|
| - gfx::Size target_size = GetSizeForLevel(src_size, mip_level);
|
| + gfx::Size target_size(ScaleAxisToMipLevel(src_size.width(), mip_level),
|
| + ScaleAxisToMipLevel(src_size.height(), mip_level));
|
|
|
| return SkSize::Make(
|
| static_cast<float>(target_size.width()) / src_size.width(),
|
| static_cast<float>(target_size.height()) / src_size.height());
|
| -}
|
| -
|
| -gfx::Size MipMapUtil::GetSizeForLevel(const gfx::Size& src_size,
|
| - int mip_level) {
|
| - if (src_size.width() == 0 || src_size.height() == 0 || mip_level == -1)
|
| - return gfx::Size(-1, -1);
|
| -
|
| - return gfx::Size(ScaleAxisToMipLevel(src_size.width(), mip_level),
|
| - ScaleAxisToMipLevel(src_size.height(), mip_level));
|
| }
|
|
|
| SkSize MipMapUtil::GetScaleAdjustmentForSize(const gfx::Size& src_size,
|
|
|