| Index: skia/ext/platform_canvas.cc
|
| diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc
|
| index 973dfd8ad3b7930445f0678b04777d657be11133..409f3020401aca91c6a0cc3308cd1b87f4e07b5e 100644
|
| --- a/skia/ext/platform_canvas.cc
|
| +++ b/skia/ext/platform_canvas.cc
|
| @@ -48,6 +48,11 @@ SkDevice* GetTopDevice(const SkCanvas& canvas) {
|
| }
|
|
|
| bool SupportsPlatformPaint(const SkCanvas* canvas) {
|
| + PlatformDevice* platform_device = GetPlatformDevice(GetTopDevice(*canvas));
|
| + return platform_device && platform_device->IsNativeRenderingAllowed();
|
| +}
|
| +
|
| +bool SupportsDirectPlatformPaint(const SkCanvas* canvas) {
|
| // TODO(alokp): Rename IsNativeFontRenderingAllowed after removing these
|
| // calls from WebKit.
|
| PlatformDevice* platform_device = GetPlatformDevice(GetTopDevice(*canvas));
|
|
|