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

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: Rebase for commit Created 9 years 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/image/cairo_cached_surface.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 c9aff412d292d2e4bc8ac3bf2a85792ac9cfd42f..dd4b8ec771ecd3f9c3d0795d6ad618c2557d2af6 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;
@@ -45,6 +49,7 @@ class UI_EXPORT Image {
enum RepresentationType {
kImageRepGdk,
kImageRepCocoa,
+ kImageRepCairoCache,
kImageRepSkia,
};
@@ -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
« no previous file with comments | « ui/gfx/image/cairo_cached_surface.cc ('k') | ui/gfx/image/image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698