Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Unified Diff: skia/ext/platform_canvas.cc

Issue 10915065: Add PlatformPictureSkia and RecordingPlatformDeviceSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style changes and move skia include to .cpp file. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698