diff options
author | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 04:20:05 +0000 |
---|---|---|
committer | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-04 04:20:05 +0000 |
commit | 37ca266fcad9975f2b34b4824e460b21888f5da7 (patch) | |
tree | e67a8fac2501bf0a4f275517852024fb59c87c8d /skia | |
parent | 60b2c071b12334b8b70e65c528588fbdf310b8ca (diff) | |
download | chromium_src-37ca266fcad9975f2b34b4824e460b21888f5da7.zip chromium_src-37ca266fcad9975f2b34b4824e460b21888f5da7.tar.gz chromium_src-37ca266fcad9975f2b34b4824e460b21888f5da7.tar.bz2 |
FreeBSD/OpenBSD ifdefs for skia
Review URL: http://codereview.chromium.org/569036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/bitmap_platform_device.h | 2 | ||||
-rw-r--r-- | skia/ext/canvas_paint.h | 2 | ||||
-rw-r--r-- | skia/ext/platform_canvas.h | 2 | ||||
-rw-r--r-- | skia/ext/platform_device.h | 2 | ||||
-rw-r--r-- | skia/ext/vector_canvas.h | 11 | ||||
-rw-r--r-- | skia/ext/vector_platform_device.h | 2 |
6 files changed, 11 insertions, 10 deletions
diff --git a/skia/ext/bitmap_platform_device.h b/skia/ext/bitmap_platform_device.h index bcc4972..f33a809 100644 --- a/skia/ext/bitmap_platform_device.h +++ b/skia/ext/bitmap_platform_device.h @@ -12,7 +12,7 @@ #include "skia/ext/bitmap_platform_device_win.h" #elif defined(__APPLE__) #include "skia/ext/bitmap_platform_device_mac.h" -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) #include "skia/ext/bitmap_platform_device_linux.h" #endif diff --git a/skia/ext/canvas_paint.h b/skia/ext/canvas_paint.h index 4e7b536..3ae7a26 100644 --- a/skia/ext/canvas_paint.h +++ b/skia/ext/canvas_paint.h @@ -12,7 +12,7 @@ #include "skia/ext/canvas_paint_win.h" #elif defined(__APPLE__) #include "skia/ext/canvas_paint_mac.h" -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) #include "skia/ext/canvas_paint_linux.h" #endif diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h index a1a55c0..b624249 100644 --- a/skia/ext/platform_canvas.h +++ b/skia/ext/platform_canvas.h @@ -47,7 +47,7 @@ class PlatformCanvas : public SkCanvas { // For two-part init, call if you use the no-argument constructor above bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL); -#elif defined(__linux__) || defined(__FreeBSD__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) // Linux --------------------------------------------------------------------- // Construct a canvas from the given memory region. The memory is not cleared diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h index f54da7a..d85786b 100644 --- a/skia/ext/platform_device.h +++ b/skia/ext/platform_device.h @@ -12,7 +12,7 @@ #include "skia/ext/platform_device_win.h" #elif defined(__APPLE__) #include "skia/ext/platform_device_mac.h" -#elif defined(__linux__) || defined(__FreeBSD__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) #include "skia/ext/platform_device_linux.h" #endif diff --git a/skia/ext/vector_canvas.h b/skia/ext/vector_canvas.h index d4f76f8..1478688 100644 --- a/skia/ext/vector_canvas.h +++ b/skia/ext/vector_canvas.h @@ -8,7 +8,7 @@ #include "skia/ext/platform_canvas.h" #include "skia/ext/vector_platform_device.h" -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) typedef struct _cairo cairo_t; #endif @@ -23,7 +23,7 @@ class VectorCanvas : public PlatformCanvas { VectorCanvas(); #if defined(WIN32) VectorCanvas(HDC dc, int width, int height); -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) // Caller owns |context|. Ownership is not transferred. VectorCanvas(cairo_t* context, int width, int height); #endif @@ -32,13 +32,14 @@ class VectorCanvas : public PlatformCanvas { // For two-part init, call if you use the no-argument constructor above #if defined(WIN32) bool initialize(HDC context, int width, int height); -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) // Ownership of |context| is not transferred. bool initialize(cairo_t* context, int width, int height); #endif virtual SkBounder* setBounder(SkBounder* bounder); -#if defined(WIN32) || defined(__linux__) +#if defined(WIN32) || defined(__linux__) || defined(__FreeBSD__) || \ + defined(__OpenBSD__) virtual SkDevice* createDevice(SkBitmap::Config config, int width, int height, bool is_opaque, bool isForLayer); @@ -50,7 +51,7 @@ class VectorCanvas : public PlatformCanvas { // |shared_section| is in fact the HDC used for output. |is_opaque| is unused. virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque, HANDLE shared_section); -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) // Ownership of |context| is not transferred. |is_opaque| is unused. virtual SkDevice* createPlatformDevice(cairo_t* context, int width, int height, diff --git a/skia/ext/vector_platform_device.h b/skia/ext/vector_platform_device.h index d77e565..351b9a5 100644 --- a/skia/ext/vector_platform_device.h +++ b/skia/ext/vector_platform_device.h @@ -9,7 +9,7 @@ // VectorPlatformDevice header file for your platform. #if defined(WIN32) #include "skia/ext/vector_platform_device_win.h" -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) #include "skia/ext/vector_platform_device_linux.h" #endif |