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

Unified Diff: skia/ext/vector_canvas.h

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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 | « skia/ext/canvas_paint.h ('k') | skia/ext/vector_platform_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_canvas.h
===================================================================
--- skia/ext/vector_canvas.h (revision 25977)
+++ skia/ext/vector_canvas.h (working copy)
@@ -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__)
typedef struct _cairo cairo_t;
#endif
@@ -23,7 +23,7 @@
VectorCanvas();
#if defined(WIN32)
VectorCanvas(HDC dc, int width, int height);
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD__)
// Caller owns |context|. Ownership is not transferred.
VectorCanvas(cairo_t* context, int width, int height);
#endif
@@ -32,13 +32,13 @@
// 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__)
// 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__)
virtual SkDevice* createDevice(SkBitmap::Config config,
int width, int height,
bool is_opaque, bool isForLayer);
@@ -50,7 +50,7 @@
// |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__)
// Ownership of |context| is not transferred. |is_opaque| is unused.
virtual SkDevice* createPlatformDevice(cairo_t* context,
int width, int height,
« no previous file with comments | « skia/ext/canvas_paint.h ('k') | skia/ext/vector_platform_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698