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

Unified Diff: ui/gfx/image/image_skia.h

Issue 11028064: Resize images for hi-dpi based on a custom PNG chunk added by GRIT r78, and roll GRIT r78 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: back out ChromeBrowserMainPartsLinux::PreProfileInit change, add RoundToInt, move image loading to … Created 8 years, 2 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: ui/gfx/image/image_skia.h
diff --git a/ui/gfx/image/image_skia.h b/ui/gfx/image/image_skia.h
index 2dfc131181dd0e215058e4180d88e0dbe371ed87..5221e31f455b09f56db0d64caaebe2ee65f3e9d8 100644
--- a/ui/gfx/image/image_skia.h
+++ b/ui/gfx/image/image_skia.h
@@ -45,6 +45,11 @@ class UI_EXPORT ImageSkia {
// ImageSkia owns |source|.
ImageSkia(ImageSkiaSource* source, const gfx::Size& size);
+ // Creates an instance that uses the |source|. The constructor loads the image
+ // at |scale_factor| and uses its dimensions to calculate the size in DIP.
+ // ImageSkia owns |source|.
+ ImageSkia(ImageSkiaSource* source, ui::ScaleFactor scale_factor);
+
// Adds ref to passed in bitmap.
// DIP width and height are set based on scale factor of 1x.
// TODO(pkotwicz): This is temporary till conversion to gfx::ImageSkia is

Powered by Google App Engine
This is Rietveld 408576698