Index: chrome/browser/thumbnails/thumbnail_tab_helper.cc |
diff --git a/chrome/browser/thumbnails/thumbnail_tab_helper.cc b/chrome/browser/thumbnails/thumbnail_tab_helper.cc |
index 992a695526707f659bf7afc4e6bb4284418eac7d..933ff2807c1ca7e3bd4230317403d81b0ec2f1df 100644 |
--- a/chrome/browser/thumbnails/thumbnail_tab_helper.cc |
+++ b/chrome/browser/thumbnails/thumbnail_tab_helper.cc |
@@ -88,8 +88,8 @@ gfx::Size GetCopySizeForThumbnail(content::RenderWidgetHostView* view) { |
ui::GetScaleFactorForNativeView(view->GetNativeView()); |
switch (scale_factor) { |
case ui::SCALE_FACTOR_100P: |
- copy_size = gfx::ToFlooredSize( |
- copy_size.Scale(ui::GetScaleFactorScale(ui::SCALE_FACTOR_200P))); |
+ copy_size = gfx::ToFlooredSize(gfx::ScaleSize( |
+ copy_size, ui::GetScaleFactorScale(ui::SCALE_FACTOR_200P))); |
break; |
case ui::SCALE_FACTOR_200P: |
// Use the size as-is. |
@@ -97,8 +97,8 @@ gfx::Size GetCopySizeForThumbnail(content::RenderWidgetHostView* view) { |
default: |
DLOG(WARNING) << "Unsupported scale factor. Use the same copy size as " |
<< "ui::SCALE_FACTOR_100P"; |
- copy_size = gfx::ToFlooredSize( |
- copy_size.Scale(ui::GetScaleFactorScale(ui::SCALE_FACTOR_200P))); |
+ copy_size = gfx::ToFlooredSize(gfx::ScaleSize( |
+ copy_size, ui::GetScaleFactorScale(ui::SCALE_FACTOR_200P))); |
break; |
} |
return copy_size; |
@@ -113,7 +113,7 @@ gfx::Size GetThumbnailSizeInPixel() { |
// crbug.com/159157. |
float max_scale_factor = |
ui::GetScaleFactorScale(ui::GetMaxScaleFactor()); |
- return gfx::ToFlooredSize(thumbnail_size.Scale(max_scale_factor)); |
+ return gfx::ToFlooredSize(gfx::ScaleSize(thumbnail_size, max_scale_factor)); |
} |
// Returns the clipping rectangle that is used for creating a thumbnail with |