Changeset 70048 in webkit
- Timestamp:
- Oct 19, 2010 5:15:52 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70047 r70048 1 2010-10-19 Philippe Normand <pnormand@igalia.com> 2 3 Reviewed by Martin Robinson. 4 5 GStreamer PlatformVideoWindow needs an API to prepare the widget before applying the overlay 6 https://bugs.webkit.org/show_bug.cgi?id=46790 7 8 Simple API addition to PlatformVideoWindow to allow 9 implementations to optionally prepare their own PlatformWidget 10 before applying the GStreamer XOverlay to it. This will likely be 11 needed on Mac OSX only. 12 13 * platform/graphics/gstreamer/GStreamerGWorld.cpp: 14 (WebCore::GStreamerGWorld::setWindowOverlay): 15 * platform/graphics/gstreamer/PlatformVideoWindow.h: 16 * platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp: 17 (PlatformVideoWindow::prepareForOverlay): 18 * platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp: 19 (PlatformVideoWindow::prepareForOverlay): 20 1 21 2010-10-19 Ben Murdoch <benm@google.com> 2 22 -
trunk/WebCore/platform/graphics/gstreamer/GStreamerGWorld.cpp
r68632 r70048 195 195 g_object_set(sink, "force-aspect-ratio", TRUE, NULL); 196 196 197 if (m_videoWindow) 197 if (m_videoWindow) { 198 m_videoWindow->prepareForOverlay(message); 198 199 #if GST_CHECK_VERSION(0, 10, 31) || GST_VERSION_NANO 199 200 gst_x_overlay_set_window_handle(GST_X_OVERLAY(sink), m_videoWindow->videoWindowId()); … … 201 202 gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(sink), m_videoWindow->videoWindowId()); 202 203 #endif 204 } 203 205 } 204 206 -
trunk/WebCore/platform/graphics/gstreamer/PlatformVideoWindow.h
r68632 r70048 26 26 #include <wtf/RefCounted.h> 27 27 28 typedef struct _GstMessage GstMessage; 29 28 30 namespace WebCore { 29 31 … … 35 37 ~PlatformVideoWindow(); 36 38 39 40 void prepareForOverlay(GstMessage*); 37 41 PlatformWidget window() const { return m_window; } 38 42 unsigned long videoWindowId() const { return m_videoWindowId; } -
trunk/WebCore/platform/graphics/gstreamer/PlatformVideoWindowEfl.cpp
r68632 r70048 36 36 } 37 37 38 void PlatformVideoWindow::prepareForOverlay(GstMessage*) 39 { 40 } 41 38 42 #endif // USE(GSTREAMER) -
trunk/WebCore/platform/graphics/gstreamer/PlatformVideoWindowGtk.cpp
r68632 r70048 62 62 m_videoWindowId = 0; 63 63 } 64 65 void PlatformVideoWindow::prepareForOverlay(GstMessage*) 66 { 67 } 64 68 #endif // USE(GSTREAMER) 69
Note: See TracChangeset
for help on using the changeset viewer.