| Index: skia/ext/platform_canvas.h
|
| diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
|
| index 85ad85e535cde37e4f45cd46bfc880e9e063753a..75458b5dd5401c63e4341395cd9e0bdf47ae4591 100644
|
| --- a/skia/ext/platform_canvas.h
|
| +++ b/skia/ext/platform_canvas.h
|
| @@ -43,6 +43,14 @@ enum OnFailureType {
|
| bool is_opaque,
|
| HANDLE shared_section,
|
| OnFailureType failure_type);
|
| +
|
| + // Draws the top layer of the canvas into the specified HDC. Only works
|
| + // with a PlatformCanvas with a BitmapPlatformDevice.
|
| + SK_API void DrawToNativeContext(SkCanvas* canvas,
|
| + HDC hdc,
|
| + int x,
|
| + int y,
|
| + const RECT* src_rect);
|
| #elif defined(__APPLE__)
|
| SK_API SkCanvas* CreatePlatformCanvas(CGContextRef context,
|
| int width,
|
| @@ -113,15 +121,6 @@ SK_API SkBaseDevice* GetTopDevice(const SkCanvas& canvas);
|
| // return NULL PlatformSurface.
|
| SK_API bool SupportsPlatformPaint(const SkCanvas* canvas);
|
|
|
| -// Draws into the a native platform surface, |context|. Forwards to
|
| -// DrawToNativeContext on a PlatformDevice instance bound to the top device.
|
| -// If no PlatformDevice instance is bound, is a no-operation.
|
| -SK_API void DrawToNativeContext(SkCanvas* canvas,
|
| - PlatformSurface context,
|
| - int x,
|
| - int y,
|
| - const PlatformRect* src_rect);
|
| -
|
| // Sets the opacity of each pixel in the specified region to be opaque.
|
| SK_API void MakeOpaque(SkCanvas* canvas, int x, int y, int width, int height);
|
|
|
|
|