openbsd-ports/www/chromium/patches/patch-ui_gfx_image_h

22 lines
826 B
Plaintext

$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 {
// 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)
@@ -58,7 +58,7 @@ class Image {
// 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*();