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(); |