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

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

Issue 10086023: Expose array of bitmaps contained by gfx::Image similar to NSImage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff Created 8 years, 8 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
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index 1878f49941c9ada5b7e3f930e6e165f575ddab57..9c0e6eb9671cc9e7ef58fe572953986f9116a4c0 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -37,6 +37,7 @@ class ImageMacTest;
}
namespace gfx {
+class ImageSkia;
#if defined(TOOLKIT_GTK)
class CairoCachedSurface;
@@ -97,6 +98,7 @@ class UI_EXPORT Image {
// The returned result is a weak pointer owned by and scoped to the life of
// the Image.
const SkBitmap* ToSkBitmap() const;
+ const ImageSkia* ToImageSkia() const;
#if defined(TOOLKIT_GTK)
GdkPixbuf* ToGdkPixbuf() const;
CairoCachedSurface* const ToCairo() const;
@@ -124,16 +126,6 @@ class UI_EXPORT Image {
#endif
// ---------------------------------------------------------------------------
- // Gets the number of bitmaps in this image. This may cause a conversion
- // to a bitmap representation. Note, this function and GetSkBitmapAtIndex()
- // are primarily meant to be used by the theme provider.
- size_t GetNumberOfSkBitmaps() const;
-
- // Gets the bitmap at the given index. This may cause a conversion
- // to a bitmap representation. Note, the internal ordering of bitmaps is not
- // guaranteed.
- const SkBitmap* GetSkBitmapAtIndex(size_t index) const;
-
// Inspects the representations map to see if the given type exists.
bool HasRepresentation(RepresentationType type) const;
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698