Index: ui/gfx/canvas_skia.h |
diff --git a/ui/gfx/canvas_skia.h b/ui/gfx/canvas_skia.h |
index e5c4bd9d467100cabdf76d50e5a2e93dc3b2b5bc..e7ec18b183d821ee64c2eddf8e21328b2f047894 100644 |
--- a/ui/gfx/canvas_skia.h |
+++ b/ui/gfx/canvas_skia.h |
@@ -11,7 +11,7 @@ |
#include "skia/ext/platform_canvas.h" |
#include "ui/gfx/canvas.h" |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if defined(TOOLKIT_USES_GTK) |
typedef struct _GdkPixbuf GdkPixbuf; |
#endif |
@@ -68,7 +68,7 @@ class UI_EXPORT CanvasSkia : public skia::PlatformCanvas, public Canvas { |
// gfx::Canvas::TEXT_ALIGN_RIGHT. |
static int DefaultCanvasTextAlignment(); |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if defined(TOOLKIT_USES_GTK) |
// Draw the pixbuf in its natural size at (x, y). |
void DrawGdkPixbuf(GdkPixbuf* pixbuf, int x, int y); |
#endif |