summaryrefslogtreecommitdiffstats
path: root/ui/gfx/image/image.h
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 22:34:00 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 22:34:00 +0000
commita68c660bd1bcfa93d9759bdac2b384587e911c04 (patch)
treea86770745fca2a96f61e1ef9499417c073993748 /ui/gfx/image/image.h
parent75af2a115ef599f4c26cd47a8cc336124ecffe52 (diff)
downloadchromium_src-a68c660bd1bcfa93d9759bdac2b384587e911c04.zip
chromium_src-a68c660bd1bcfa93d9759bdac2b384587e911c04.tar.gz
chromium_src-a68c660bd1bcfa93d9759bdac2b384587e911c04.tar.bz2
Revert 136332 - This patch makes ImageSkia more like SkBitmap. The goal is to make swapping from SkBitmap to ImageSkia easier.
Notable changes: - ImageSkia can be cheaply copied - Added extractSubset, will remove after SkBitmaps have been converted to ImageSkia - Modified API to look more like SkBitmap Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136304 Review URL: https://chromiumcodereview.appspot.com/10245003 TBR=pkotwicz@chromium.org Review URL: https://chromiumcodereview.appspot.com/10389132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136995 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/image/image.h')
-rw-r--r--ui/gfx/image/image.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index b5bb3bf..9c0e6eb 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -62,9 +62,6 @@ class UI_EXPORT Image {
// Creates an empty image with no representations.
Image();
- // Creates a new image with the default representation.
- explicit Image(const ImageSkia& image);
-
// Creates a new image with the default representation. The object will take
// ownership of the image.
explicit Image(const SkBitmap* bitmap);
@@ -73,6 +70,10 @@ class UI_EXPORT Image {
// representation.
explicit Image(const SkBitmap& bitmap);
+ // To create an Image that supports multiple resolutions pass a vector
+ // of bitmaps, one for each resolution.
+ explicit Image(const std::vector<const SkBitmap*>& bitmaps);
+
#if defined(TOOLKIT_GTK)
// Does not increase |pixbuf|'s reference count; expects to take ownership.
explicit Image(GdkPixbuf* pixbuf);
@@ -111,7 +112,6 @@ class UI_EXPORT Image {
// backing pixels are shared amongst all copies (a fact of each of the
// converted representations, rather than a limitation imposed by Image) and
// so the result should be considered immutable.
- ImageSkia* CopyImageSkia() const;
SkBitmap* CopySkBitmap() const;
#if defined(TOOLKIT_GTK)
GdkPixbuf* CopyGdkPixbuf() const;