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

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

Issue 10694045: Loading/Creating images for mutiple scale factors on the fly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: size fix Created 8 years, 6 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_rep.h
diff --git a/ui/gfx/image/image_skia_rep.h b/ui/gfx/image/image_skia_rep.h
index ce209d1fec90751a88124d0c9b7b032e0fb98700..84904b77967e1bf66d5d299a310da375f001e744 100644
--- a/ui/gfx/image/image_skia_rep.h
+++ b/ui/gfx/image/image_skia_rep.h
@@ -11,6 +11,7 @@
#include "ui/base/ui_export.h"
namespace gfx {
+class Size;
// An ImageSkiaRep represents a bitmap and the scale factor it is intended for.
class UI_EXPORT ImageSkiaRep {
@@ -19,10 +20,9 @@ class UI_EXPORT ImageSkiaRep {
ImageSkiaRep();
~ImageSkiaRep();
- // Creates a bitmap with kARGB_8888_Config config with given DIP |width| and
- // |height| and |scale_factor|.
- // Allocates pixels.
- ImageSkiaRep(int width, int height, ui::ScaleFactor scale_factor);
+ // Creates a bitmap with kARGB_8888_Config config with given |size| in DIP.
+ // This allocates pixels in the bitmap.
+ ImageSkiaRep(const gfx::Size& size, ui::ScaleFactor scale_factor);
// Creates a bitmap with a default scale factor of 1x.
// Adds ref to |src|.

Powered by Google App Engine
This is Rietveld 408576698