OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Declare a platform-neutral name for this platform's canvas class | 5 // Declare a platform-neutral name for this platform's canvas class |
6 // that can be used by upper-level classes that just need to pass a reference | 6 // that can be used by upper-level classes that just need to pass a reference |
7 // around. | 7 // around. |
8 | 8 |
9 #if defined(WIN32) | 9 #if defined(WIN32) |
10 #include "PlatformCanvasWin.h" | 10 #include "skia/ext/platform_canvas_win.h" |
11 namespace gfx { | 11 namespace gfx { |
12 | 12 |
13 typedef PlatformCanvasWin PlatformCanvas; | 13 typedef PlatformCanvasWin PlatformCanvas; |
14 | 14 |
15 } // namespace gfx | 15 } // namespace gfx |
16 #elif defined(__APPLE__) | 16 #elif defined(__APPLE__) |
17 #include "skia/ext/platform_canvas_mac.h" | 17 #include "skia/ext/platform_canvas_mac.h" |
18 namespace gfx { | 18 namespace gfx { |
19 | 19 |
20 typedef PlatformCanvasMac PlatformCanvas; | 20 typedef PlatformCanvasMac PlatformCanvas; |
21 | 21 |
22 } // namespace gfx | 22 } // namespace gfx |
23 #elif defined(__linux__) | 23 #elif defined(__linux__) |
24 #include "PlatformCanvasLinux.h" | 24 #include "PlatformCanvasLinux.h" |
25 namespace gfx { | 25 namespace gfx { |
26 | 26 |
27 typedef PlatformCanvasLinux PlatformCanvas; | 27 typedef PlatformCanvasLinux PlatformCanvas; |
28 | 28 |
29 } // namespace gfx | 29 } // namespace gfx |
30 #endif | 30 #endif |
OLD | NEW |