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

Unified Diff: content/renderer/webplugin_delegate_proxy.cc

Issue 9271028: android build: progress on content and libjingle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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: 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);

Powered by Google App Engine
This is Rietveld 408576698