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

Side by Side Diff: skia/ext/platform_device.h

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 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 unified diff | Download patch
« no previous file with comments | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/platform_device_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 device class 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_
6 // that can be used by upper-level classes that just need to pass a reference 6 #define SKIA_EXT_PLATFORM_DEVICE_H_
7 // around. 7
8 // This file provides an easy way to include the appropriate PlatformDevice
9 // header file for your platform.
8 10
9 #if defined(WIN32) 11 #if defined(WIN32)
10 #include "skia/ext/platform_device_win.h" 12 #include "skia/ext/platform_device_win.h"
11 #elif defined(__APPLE__) 13 #elif defined(__APPLE__)
12 #include "skia/ext/platform_device_mac.h" 14 #include "skia/ext/platform_device_mac.h"
13 #elif defined(__linux__) 15 #elif defined(__linux__)
14 #include "skia/ext/platform_device_linux.h" 16 #include "skia/ext/platform_device_linux.h"
15 #endif 17 #endif
16 18
17 namespace skia {
18
19 #if defined(WIN32)
20 typedef PlatformDeviceWin PlatformDevice;
21 #elif defined(__APPLE__)
22 typedef PlatformDeviceMac PlatformDevice;
23 #elif defined(__linux__)
24 typedef PlatformDeviceLinux PlatformDevice;
25 #endif 19 #endif
26
27 } // namespace skia
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/platform_device_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698