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

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
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | ui/gfx/image/image_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia.h
diff --git a/ui/gfx/image/image_skia.h b/ui/gfx/image/image_skia.h
index 55883242f0b27e2018cdfe243e96a7d74facb792..08725beace85a8971c797f0ff8b581daadef3467 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;
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | ui/gfx/image/image_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698