Index: content/renderer/webplugin_delegate_proxy.cc |
diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc |
index b638a208ea93bfaf697e3516d21b67fcbf421844..278e4785c599539665e5c58a3567447f6aaa1fbb 100644 |
--- a/content/renderer/webplugin_delegate_proxy.cc |
+++ b/content/renderer/webplugin_delegate_proxy.cc |
@@ -751,6 +751,9 @@ void WebPluginDelegateProxy::Paint(WebKit::WebCanvas* canvas, |
bool WebPluginDelegateProxy::BackgroundChanged( |
gfx::NativeDrawingContext context, |
const gfx::Rect& rect) { |
+#if defined(OS_ANDROID) |
+ NOTIMPLEMENTED(); |
+#else |
#if defined(OS_WIN) |
HBITMAP hbitmap = static_cast<HBITMAP>(GetCurrentObject(context, OBJ_BITMAP)); |
if (hbitmap == NULL) { |
@@ -817,11 +820,14 @@ bool WebPluginDelegateProxy::BackgroundChanged( |
cairo_image_surface_get_width(page_surface), |
cairo_image_surface_get_height(page_surface)); |
#endif |
+#endif // OS_ANDROID |
// According to comments in the Windows code, the damage rect that we're given |
// may project outside the image, so intersect their rects. |
gfx::Rect content_rect = rect.Intersect(full_content_rect); |
-#if defined(OS_MACOSX) |
+#if defined(OS_ANDROID) |
+ NOTIMPLEMENTED(); |
+#elif defined(OS_MACOSX) |
const unsigned char* page_bytes = static_cast<const unsigned char*>( |
CGBitmapContextGetData(context)); |
int page_stride = CGBitmapContextGetBytesPerRow(context); |