| Index: skia/ext/platform_canvas.cc
|
| ===================================================================
|
| --- skia/ext/platform_canvas.cc (revision 80714)
|
| +++ skia/ext/platform_canvas.cc (working copy)
|
| @@ -41,4 +41,20 @@
|
| return true;
|
| }
|
|
|
| +SkCanvas* CreateBitmapCanvas(int width, int height, bool is_opaque) {
|
| + return new PlatformCanvas(width, height, is_opaque);
|
| +}
|
| +
|
| +PlatformDevice::PlatformSurface BeginPlatformPaint(SkCanvas* canvas) {
|
| + // All of our devices should be our special PlatformDevice.
|
| + PlatformDevice* device = static_cast<PlatformDevice*>(canvas->getDevice());
|
| + return device->BeginPlatformPaint();
|
| +}
|
| +
|
| +void EndPlatformPaint(SkCanvas* canvas) {
|
| + // All of our devices should be our special PlatformDevice.
|
| + PlatformDevice* device = static_cast<PlatformDevice*>(canvas->getDevice());
|
| + device->EndPlatformPaint();
|
| +}
|
| +
|
| } // namespace skia
|
|
|