| Index: skia/ext/platform_canvas.cc
|
| diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc
|
| index d7cfc75e2ac2f14581e465204f028acf215da9fb..6c86c6d6abe69a6f6d3b7377a1e49c8d1b475ce3 100644
|
| --- a/skia/ext/platform_canvas.cc
|
| +++ b/skia/ext/platform_canvas.cc
|
| @@ -47,9 +47,11 @@ SkDevice* GetTopDevice(const SkCanvas& canvas) {
|
| return canvas.getTopDevice(true);
|
| }
|
|
|
| -bool SupportsPlatformPaint(const SkCanvas* canvas) {
|
| +PlatformDevice::PlatformPaint PlatformPaintSupport(const SkCanvas* canvas) {
|
| PlatformDevice* platform_device = GetPlatformDevice(GetTopDevice(*canvas));
|
| - return platform_device && platform_device->SupportsPlatformPaint();
|
| + if (!platform_device)
|
| + return PlatformDevice::PLATFORM_PAINT_UNSUPPORTED;
|
| + return platform_device->PlatformPaintSupport();
|
| }
|
|
|
| PlatformSurface BeginPlatformPaint(SkCanvas* canvas) {
|
|
|