diff options
-rw-r--r-- | skia/ext/platform_canvas.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc index f4510744..973dfd8 100644 --- a/skia/ext/platform_canvas.cc +++ b/skia/ext/platform_canvas.cc @@ -44,8 +44,7 @@ SkCanvas* TryCreateBitmapCanvas(int width, int height, bool is_opaque) { } SkDevice* GetTopDevice(const SkCanvas& canvas) { - SkCanvas::LayerIter iter(const_cast<SkCanvas*>(&canvas), false); - return iter.device(); + return canvas.getTopDevice(true); } bool SupportsPlatformPaint(const SkCanvas* canvas) { |