diff options
-rw-r--r-- | skia/ext/platform_canvas.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc index 5fff062..ac9c708 100644 --- a/skia/ext/platform_canvas.cc +++ b/skia/ext/platform_canvas.cc @@ -52,8 +52,10 @@ SkCanvas* CreateBitmapCanvas(int width, int height, bool is_opaque) { } void MakeOpaque(const SkIRect& region, SkCanvas* canvas) { - GetTopPlatformDevice(canvas)->makeOpaque(region.fLeft, region.fTop, - region.width(), region.height()); + BitmapPlatformDevice* device = static_cast<BitmapPlatformDevice*>( + GetTopPlatformDevice(canvas)); + device->makeOpaque(region.fLeft, region.fTop, + region.width(), region.height()); } bool SupportsPlatformPaint(const SkCanvas* canvas) { |