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

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

Issue 10780010: Introduces ImageSkia::GetRepresentations() for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 e6ab0acdd599ea224d3b9df9c9a5697014b54b27..fbe3414256ebb9ef0e78f276404754d3e6d56525 100644
--- a/ui/gfx/image/image_skia.h
+++ b/ui/gfx/image/image_skia.h
@@ -83,6 +83,14 @@ class UI_EXPORT ImageSkia {
const gfx::ImageSkiaRep& GetRepresentation(
ui::ScaleFactor scale_factor) const;
+#if defined(OS_MACOSX)
+ // Returns the image reps contained by this object.
+ // If the image has a source, this method will attempt to generate
+ // representations from the source for all supported scale factors.
+ // Mac only for now.
+ std::vector<ImageSkiaRep> GetRepresentations() const;
+#endif // OS_MACOSX
+
// Returns true if object is null or its size is empty.
bool empty() const;

Powered by Google App Engine
This is Rietveld 408576698