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 bitmap device class | 5 // Declare a platform-neutral name for this platform's bitmap device 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 "skia/ext/bitmap_platform_device_win.h" | 10 #include "skia/ext/bitmap_platform_device_win.h" |
11 namespace gfx { | |
12 | |
13 typedef BitmapPlatformDeviceWin BitmapPlatformDevice; | |
14 | |
15 } // namespace gfx | |
16 #elif defined(__APPLE__) | 11 #elif defined(__APPLE__) |
17 #include "skia/ext/bitmap_platform_device_mac.h" | 12 #include "skia/ext/bitmap_platform_device_mac.h" |
18 namespace gfx { | |
19 | |
20 typedef BitmapPlatformDeviceMac BitmapPlatformDevice; | |
21 | |
22 } // namespace gfx | |
23 #elif defined(__linux__) | 13 #elif defined(__linux__) |
24 #include "skia/ext/bitmap_platform_device_linux.h" | 14 #include "skia/ext/bitmap_platform_device_linux.h" |
25 namespace gfx { | 15 #endif |
26 | 16 |
| 17 namespace skia { |
| 18 |
| 19 #if defined(WIN32) |
| 20 typedef BitmapPlatformDeviceWin BitmapPlatformDevice; |
| 21 #elif defined(__APPLE__) |
| 22 typedef BitmapPlatformDeviceMac BitmapPlatformDevice; |
| 23 #elif defined(__linux__) |
27 typedef BitmapPlatformDeviceLinux BitmapPlatformDevice; | 24 typedef BitmapPlatformDeviceLinux BitmapPlatformDevice; |
| 25 #endif |
28 | 26 |
29 } // namespace gfx | 27 } // namespace skia |
30 #endif | |
OLD | NEW |