| Index: skia/ext/platform_device_mac.h
|
| ===================================================================
|
| --- skia/ext/platform_device_mac.h (revision 85672)
|
| +++ skia/ext/platform_device_mac.h (working copy)
|
| @@ -17,6 +17,19 @@
|
|
|
| namespace skia {
|
|
|
| +namespace platform_util {
|
| +
|
| +// Draws to the given graphics context. Forwards to the PlatformDevice bound
|
| +// to |device|. Otherwise is a NOP.
|
| +void DrawToContext(SkDevice* device, CGContextRef context, int x, int y,
|
| + const CGRect* src_rect);
|
| +
|
| +// Returns the CGContext that backing the SkDevice. Forwards to the bound
|
| +// PlatformDevice. Returns NULL if no PlatformDevice is bound.
|
| +CGContextRef GetBitmapContext(SkDevice* device);
|
| +
|
| +} // namespace platform_util
|
| +
|
| // A device is basically a wrapper around SkBitmap that provides a surface for
|
| // SkCanvas to draw into. Our device provides a surface CoreGraphics can also
|
| // write to. It also provides functionality to play well with CG drawing
|
|
|