Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3391)

Unified Diff: chrome/browser/themes/browser_theme_pack.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/themes/browser_theme_pack.cc
diff --git a/chrome/browser/themes/browser_theme_pack.cc b/chrome/browser/themes/browser_theme_pack.cc
index 7101bd78e69f706448f92fd2b129d8cf119ec5a3..4a00a8d55977a1f39e4744f8a8bf02911a11e6de 100644
--- a/chrome/browser/themes/browser_theme_pack.cc
+++ b/chrome/browser/themes/browser_theme_pack.cc
@@ -476,11 +476,10 @@ gfx::Image CreateHSLShiftedImage(const gfx::Image& image,
SkBitmap CreateLowQualityResizedBitmap(const SkBitmap& source_bitmap,
ui::ScaleFactor source_scale_factor,
ui::ScaleFactor desired_scale_factor) {
- gfx::Size scaled_size = gfx::ToCeiledSize(
- gfx::ScaleSize(gfx::Size(source_bitmap.width(),
- source_bitmap.height()),
- ui::GetScaleForScaleFactor(desired_scale_factor) /
- ui::GetScaleForScaleFactor(source_scale_factor)));
+ gfx::Size scaled_size = gfx::ScaleToCeiledSize(
+ gfx::Size(source_bitmap.width(), source_bitmap.height()),
+ ui::GetScaleForScaleFactor(desired_scale_factor) /
+ ui::GetScaleForScaleFactor(source_scale_factor));
SkBitmap scaled_bitmap;
scaled_bitmap.allocN32Pixels(scaled_size.width(), scaled_size.height());
scaled_bitmap.eraseARGB(0, 0, 0, 0);
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail_cache.cc ('k') | chrome/browser/thumbnails/simple_thumbnail_crop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698