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

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

Issue 10806077: Upstream the rest of skia diff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Init Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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)
(...skipping 27 matching lines...) Expand all
38 typedef HDC PlatformSurface; 38 typedef HDC PlatformSurface;
39 typedef RECT PlatformRect; 39 typedef RECT PlatformRect;
40 #elif defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \ 40 #elif defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) \
41 || defined(OS_SUN) 41 || defined(OS_SUN)
42 typedef cairo_t* PlatformSurface; 42 typedef cairo_t* PlatformSurface;
43 typedef cairo_rectangle_t PlatformRect; 43 typedef cairo_rectangle_t PlatformRect;
44 #elif defined(OS_MACOSX) 44 #elif defined(OS_MACOSX)
45 typedef CGContextRef PlatformSurface; 45 typedef CGContextRef PlatformSurface;
46 typedef CGRect PlatformRect; 46 typedef CGRect PlatformRect;
47 #elif defined(ANDROID) 47 #elif defined(ANDROID)
48 // TODO(tonyg): FIX TYPES! 48 // TODO(tonyg): FIX TYPES!
Yaron 2012/07/24 01:12:47 Remove TODO. Also, copy the rest of downstream dif
Nico 2012/07/24 01:20:27 Will PlatformSurface remain a void*?
michaelbai 2012/07/24 01:37:47 Yes On 2012/07/24 01:20:27, Nico wrote:
michaelbai 2012/07/24 01:37:47 Done.
49 typedef void* PlatformSurface; 49 typedef void* PlatformSurface;
50 typedef void* PlatformRect; 50 typedef SkIRect* PlatformRect;
51 #endif 51 #endif
52 52
53 // The following routines provide accessor points for the functionality 53 // The following routines provide accessor points for the functionality
54 // exported by the various PlatformDevice ports. The PlatformDevice, and 54 // exported by the various PlatformDevice ports. The PlatformDevice, and
55 // BitmapPlatformDevice classes inherit directly from SkDevice, which is no 55 // BitmapPlatformDevice classes inherit directly from SkDevice, which is no
56 // longer a supported usage-pattern for skia. In preparation of the removal of 56 // longer a supported usage-pattern for skia. In preparation of the removal of
57 // these classes, all calls to PlatformDevice::* should be routed through these 57 // these classes, all calls to PlatformDevice::* should be routed through these
58 // helper functions. 58 // helper functions.
59 59
60 // Bind a PlatformDevice instance, |platform_device| to |device|. Subsequent 60 // Bind a PlatformDevice instance, |platform_device| to |device|. Subsequent
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 #elif defined(OS_MACOSX) 170 #elif defined(OS_MACOSX)
171 // Loads the specified Skia transform into the device context 171 // Loads the specified Skia transform into the device context
172 static void LoadTransformToCGContext(CGContextRef context, 172 static void LoadTransformToCGContext(CGContextRef context,
173 const SkMatrix& matrix); 173 const SkMatrix& matrix);
174 #endif 174 #endif
175 }; 175 };
176 176
177 } // namespace skia 177 } // namespace skia
178 178
179 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ 179 #endif // SKIA_EXT_PLATFORM_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698