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

Unified Diff: skia/ext/platform_device.cc

Issue 1525043002: Enabling Skia / Moterm to build with PNaCl Newlib toolchain (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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
« skia/ext/platform_canvas.h ('K') | « skia/ext/platform_canvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device.cc
diff --git a/skia/ext/platform_device.cc b/skia/ext/platform_device.cc
index ae720dfb45a0eb4b825d1104b16b2134c20bece7..1a76bc45af5b80c13db1b382ba820e19269fb62f 100644
--- a/skia/ext/platform_device.cc
+++ b/skia/ext/platform_device.cc
@@ -73,6 +73,18 @@ bool IsPreviewMetafile(const SkCanvas& canvas) {
}
#endif
+// For platforms without "platform_device_*" specific files,
+// include default behaviors for necessary methods to compile.
+#if defined(OS_NACL)
+PlatformSurface PlatformDevice::BeginPlatformPaint() {
+ return NULL;
+}
+
+void PlatformDevice::EndPlatformPaint() {
+ // By default, do nothing here.
+}
+#endif
+
bool PlatformDevice::SupportsPlatformPaint() {
return true;
}
« skia/ext/platform_canvas.h ('K') | « skia/ext/platform_canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698