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; |
} |