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

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

Issue 14101006: Convert an OS_SUN use to OS_SOLARIS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | 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) 2012 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_PLATFORM_DEVICE_H_ 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_
6 #define SKIA_EXT_PLATFORM_DEVICE_H_ 6 #define SKIA_EXT_PLATFORM_DEVICE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #include <vector> 12 #include <vector>
13 #endif 13 #endif
14 14
15 #include "third_party/skia/include/core/SkColor.h" 15 #include "third_party/skia/include/core/SkColor.h"
16 #include "third_party/skia/include/core/SkDevice.h" 16 #include "third_party/skia/include/core/SkDevice.h"
17 #include "third_party/skia/include/core/SkPreConfig.h" 17 #include "third_party/skia/include/core/SkPreConfig.h"
18 18
19 class SkMatrix; 19 class SkMatrix;
20 class SkMetaData; 20 class SkMetaData;
21 class SkPath; 21 class SkPath;
22 class SkRegion; 22 class SkRegion;
23 23
24 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \ 24 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \
25 || defined(OS_SUN) 25 || defined(OS_SOLARIS)
26 typedef struct _cairo cairo_t; 26 typedef struct _cairo cairo_t;
27 typedef struct _cairo_rectangle cairo_rectangle_t; 27 typedef struct _cairo_rectangle cairo_rectangle_t;
28 #elif defined(OS_MACOSX) 28 #elif defined(OS_MACOSX)
29 typedef struct CGContext* CGContextRef; 29 typedef struct CGContext* CGContextRef;
30 typedef struct CGRect CGRect; 30 typedef struct CGRect CGRect;
31 #endif 31 #endif
32 32
33 namespace skia { 33 namespace skia {
34 34
35 class PlatformDevice; 35 class PlatformDevice;
36 36
37 #if defined(OS_WIN) 37 #if defined(OS_WIN)
38 typedef HDC PlatformSurface; 38 typedef HDC PlatformSurface;
39 typedef RECT PlatformRect; 39 typedef RECT PlatformRect;
40 #elif defined(ANDROID) 40 #elif defined(ANDROID)
41 typedef void* PlatformSurface; 41 typedef void* PlatformSurface;
42 typedef SkIRect* PlatformRect; 42 typedef SkIRect* PlatformRect;
43 #elif defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \ 43 #elif defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \
44 || defined(OS_SUN) 44 || defined(OS_SOLARIS)
45 typedef cairo_t* PlatformSurface; 45 typedef cairo_t* PlatformSurface;
46 typedef cairo_rectangle_t PlatformRect; 46 typedef cairo_rectangle_t PlatformRect;
47 #elif defined(OS_MACOSX) 47 #elif defined(OS_MACOSX)
48 typedef CGContextRef PlatformSurface; 48 typedef CGContextRef PlatformSurface;
49 typedef CGRect PlatformRect; 49 typedef CGRect PlatformRect;
50 #endif 50 #endif
51 51
52 // The following routines provide accessor points for the functionality 52 // The following routines provide accessor points for the functionality
53 // exported by the various PlatformDevice ports. The PlatformDevice, and 53 // exported by the various PlatformDevice ports. The PlatformDevice, and
54 // BitmapPlatformDevice classes inherit directly from SkDevice, which is no 54 // BitmapPlatformDevice classes inherit directly from SkDevice, which is no
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 #elif defined(OS_MACOSX) 164 #elif defined(OS_MACOSX)
165 // Loads the specified Skia transform into the device context 165 // Loads the specified Skia transform into the device context
166 static void LoadTransformToCGContext(CGContextRef context, 166 static void LoadTransformToCGContext(CGContextRef context,
167 const SkMatrix& matrix); 167 const SkMatrix& matrix);
168 #endif 168 #endif
169 }; 169 };
170 170
171 } // namespace skia 171 } // namespace skia
172 172
173 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ 173 #endif // SKIA_EXT_PLATFORM_DEVICE_H_
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698