OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SKIA_EXT_CANVAS_PAINT_H_ | 5 #ifndef SKIA_EXT_CANVAS_PAINT_H_ |
6 #define SKIA_EXT_CANVAS_PAINT_H_ | 6 #define SKIA_EXT_CANVAS_PAINT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file provides an easy way to include the appropriate CanvasPaint | 9 // This file provides an easy way to include the appropriate CanvasPaint |
10 // header file on your platform. | 10 // header file on your platform. |
11 | 11 |
12 #if defined(WIN32) | 12 #if defined(WIN32) |
13 #include "skia/ext/canvas_paint_win.h" | 13 #include "skia/ext/canvas_paint_win.h" |
14 #elif defined(__APPLE__) | 14 #elif defined(__APPLE__) |
15 #include "skia/ext/canvas_paint_mac.h" | 15 #include "skia/ext/canvas_paint_mac.h" |
16 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defi
ned(__sun) | 16 #elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defi
ned(__sun) |
17 #if defined(USE_WAYLAND) | 17 #if defined(TOOLKIT_GTK) |
18 #include "skia/ext/canvas_paint_wayland.h" | |
19 #elif defined(TOOLKIT_GTK) | |
20 #include "skia/ext/canvas_paint_gtk.h" | 18 #include "skia/ext/canvas_paint_gtk.h" |
21 #else | 19 #else |
22 #include "skia/ext/canvas_paint_x.h" | 20 #error "No canvas paint for this platform" |
23 #endif | 21 #endif |
24 #endif | 22 #endif |
25 | 23 |
26 #endif // SKIA_EXT_CANVAS_PAINT_H_ | 24 #endif // SKIA_EXT_CANVAS_PAINT_H_ |
OLD | NEW |