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

Unified Diff: webkit/glue/webplugin_impl.cc

Issue 39105: Windowless plugins: basic drawing works. (Closed)
Patch Set: retry Created 11 years, 10 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: webkit/glue/webplugin_impl.cc
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 8449b8952f127832a32a009c4f0904d69ad2f699..7d7919fbb09d20df0106cc75113ea08d3ba08aa7 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -712,15 +712,15 @@ void WebPluginImpl::paint(WebCore::GraphicsContext* gc,
#elif defined (OS_MACOSX)
gfx::NativeDrawingContext context = gc->platformContext();
#else
darin (slow to review) 2009/03/04 07:00:35 #elif defined(OS_LINUX) can you also fix the bad
- // TODO(port): the equivalent of the above.
- void* context = NULL; // Temporary, to reduce ifdefs.
+ skia::PlatformDeviceLinux::XDrawable context =
+ gc->platformContext()->canvas()->getXDrawable();
#endif
WebCore::IntRect window_rect =
WebCore::IntRect(view->contentsToWindow(damage_rect.location()),
damage_rect.size());
- delegate_->Paint(context, webkit_glue::FromIntRect(window_rect));
+ delegate_->Paint((void*)context, webkit_glue::FromIntRect(window_rect));
darin (slow to review) 2009/03/04 07:00:35 reinterpret_cast
#if defined(OS_WIN)
gc->platformContext()->canvas()->endPlatformPaint();
« webkit/glue/plugins/plugin_instance.h ('K') | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698