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

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

Issue 8769017: GTK: Move CairoCachedSurface from being owned by GtkThemeService to gfx::Image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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.h
diff --git a/ui/gfx/image/image.h b/ui/gfx/image/image.h
index c9aff412d292d2e4bc8ac3bf2a85792ac9cfd42f..901a1ded176b399c7770eb0f47e695f96b7a5d4a 100644
--- a/ui/gfx/image/image.h
+++ b/ui/gfx/image/image.h
@@ -35,6 +35,10 @@ class ImageMacTest;
namespace gfx {
+#if defined(TOOLKIT_USES_GTK)
+class CairoCachedSurface;
+#endif
+
namespace internal {
class ImageRep;
class ImageStorage;
@@ -46,6 +50,7 @@ class UI_EXPORT Image {
kImageRepGdk,
kImageRepCocoa,
kImageRepSkia,
+ kImageRepCairoCache
};
typedef std::map<RepresentationType, internal::ImageRep*> RepresentationMap;
@@ -84,6 +89,7 @@ class UI_EXPORT Image {
const SkBitmap* ToSkBitmap() const;
#if defined(TOOLKIT_USES_GTK)
GdkPixbuf* ToGdkPixbuf() const;
+ CairoCachedSurface* const ToCairo() const;
#elif defined(OS_MACOSX)
NSImage* ToNSImage() const;
#endif

Powered by Google App Engine
This is Rietveld 408576698