diff options
Diffstat (limited to 'skia/ext/platform_canvas_mac.cc')
-rw-r--r-- | skia/ext/platform_canvas_mac.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/skia/ext/platform_canvas_mac.cc b/skia/ext/platform_canvas_mac.cc index fba49f2..bf6843f 100644 --- a/skia/ext/platform_canvas_mac.cc +++ b/skia/ext/platform_canvas_mac.cc @@ -4,7 +4,7 @@ #include "skia/ext/platform_canvas.h" -#include "skia/ext/bitmap_platform_device.h" +#include "skia/ext/bitmap_platform_device_mac.h" #include "third_party/skia/include/core/SkTypes.h" namespace skia { @@ -49,4 +49,12 @@ bool PlatformCanvas::initialize(CGContextRef context, context, width, height, is_opaque)); } +CGContextRef PlatformCanvas::beginPlatformPaint() const { + return getTopPlatformDevice().BeginPlatformPaint(); +} + +void PlatformCanvas::endPlatformPaint() const { + getTopPlatformDevice().EndPlatformPaint(); +} + } // namespace skia |