| Index: skia/ext/platform_canvas.cc
|
| diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc
|
| index d7cfc75e2ac2f14581e465204f028acf215da9fb..9587baf5510f21b6ba50893f58a4b214f210e403 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::UNSUPPORTED;
|
| + return platform_device->PlatformPaintSupport();
|
| }
|
|
|
| PlatformSurface BeginPlatformPaint(SkCanvas* canvas) {
|
|
|