2011-06-08 16:36:56 -04:00
|
|
|
$OpenBSD: patch-ui_gfx_image_h,v 1.2 2011/06/08 20:36:56 robert Exp $
|
|
|
|
--- ui/gfx/image.h.orig Mon Jun 6 11:12:14 2011
|
|
|
|
+++ ui/gfx/image.h Wed Jun 8 09:58:37 2011
|
|
|
|
@@ -44,7 +44,7 @@ class Image {
|
2011-04-29 09:18:01 -04:00
|
|
|
// Creates a new image with the default representation. The object will take
|
|
|
|
// ownership of the image.
|
|
|
|
explicit Image(const SkBitmap* bitmap);
|
|
|
|
-#if defined(OS_LINUX)
|
|
|
|
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
|
|
|
|
// Does not increase |pixbuf|'s reference count; expects to take ownership.
|
|
|
|
explicit Image(GdkPixbuf* pixbuf);
|
|
|
|
#elif defined(OS_MACOSX)
|
2011-06-08 16:36:56 -04:00
|
|
|
@@ -58,7 +58,7 @@ class Image {
|
2011-04-29 09:18:01 -04:00
|
|
|
// Conversion handlers.
|
|
|
|
operator const SkBitmap*();
|
|
|
|
operator const SkBitmap&();
|
|
|
|
-#if defined(OS_LINUX)
|
|
|
|
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
|
|
|
|
operator GdkPixbuf*();
|
|
|
|
#elif defined(OS_MACOSX)
|
|
|
|
operator NSImage*();
|