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

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

Issue 1518073002: More build config cleanup. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ERROR, not FATAL Created 5 years 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/bitmap_platform_device_cairo.cc ('k') | ui/gfx/native_widget_types.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) 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/SkBitmapDevice.h" 16 #include "third_party/skia/include/core/SkBitmapDevice.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(USE_CAIRO) 24 #if defined(OS_MACOSX)
25 typedef struct _cairo cairo_t;
26 typedef struct _cairo_rectangle cairo_rectangle_t;
27 #elif defined(OS_MACOSX)
28 typedef struct CGContext* CGContextRef; 25 typedef struct CGContext* CGContextRef;
29 typedef struct CGRect CGRect; 26 typedef struct CGRect CGRect;
30 #endif 27 #endif
31 28
32 namespace skia { 29 namespace skia {
33 30
34 class PlatformDevice; 31 class PlatformDevice;
35 32
36 #if defined(OS_WIN) 33 #if defined(OS_WIN)
37 typedef HDC PlatformSurface; 34 typedef HDC PlatformSurface;
38 typedef RECT PlatformRect; 35 typedef RECT PlatformRect;
39 #elif defined(USE_CAIRO)
40 typedef cairo_t* PlatformSurface;
41 typedef cairo_rectangle_t PlatformRect;
42 #elif defined(OS_MACOSX) 36 #elif defined(OS_MACOSX)
43 typedef CGContextRef PlatformSurface; 37 typedef CGContextRef PlatformSurface;
44 typedef CGRect PlatformRect; 38 typedef CGRect PlatformRect;
45 #else 39 #else
46 typedef void* PlatformSurface; 40 typedef void* PlatformSurface;
47 typedef SkIRect* PlatformRect; 41 typedef SkIRect* PlatformRect;
48 #endif 42 #endif
49 43
50 // The following routines provide accessor points for the functionality 44 // The following routines provide accessor points for the functionality
51 // exported by the various PlatformDevice ports. 45 // exported by the various PlatformDevice ports.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 static void LoadTransformToDC(HDC dc, const SkMatrix& matrix); 141 static void LoadTransformToDC(HDC dc, const SkMatrix& matrix);
148 142
149 // Transforms SkPath's paths into a series of cubic path. 143 // Transforms SkPath's paths into a series of cubic path.
150 static bool SkPathToCubicPaths(CubicPaths* paths, const SkPath& skpath); 144 static bool SkPathToCubicPaths(CubicPaths* paths, const SkPath& skpath);
151 #endif 145 #endif
152 }; 146 };
153 147
154 } // namespace skia 148 } // namespace skia
155 149
156 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ 150 #endif // SKIA_EXT_PLATFORM_DEVICE_H_
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.cc ('k') | ui/gfx/native_widget_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698