summaryrefslogtreecommitdiffstats
path: root/media/tools/player_x11/x11_video_renderer.h
diff options
context:
space:
mode:
authorwjia@google.com <wjia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-24 19:15:07 +0000
committerwjia@google.com <wjia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-24 19:15:07 +0000
commit5e83826af14858fca1ebac8281afa75107281e7b (patch)
tree467fbad219ff625270ebe0455dabe4459f1c7e36 /media/tools/player_x11/x11_video_renderer.h
parentcc2de439d0fd34aac593b1fabc40f0626c5848e1 (diff)
downloadchromium_src-5e83826af14858fca1ebac8281afa75107281e7b.zip
chromium_src-5e83826af14858fca1ebac8281afa75107281e7b.tar.gz
chromium_src-5e83826af14858fca1ebac8281afa75107281e7b.tar.bz2
1. remove initial rendering lag time for egl image decoding path
2. put all GLES operations in one thread BUG=none TEST=dev platform and desktop Review URL: http://codereview.chromium.org/2836019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools/player_x11/x11_video_renderer.h')
-rw-r--r--media/tools/player_x11/x11_video_renderer.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/media/tools/player_x11/x11_video_renderer.h b/media/tools/player_x11/x11_video_renderer.h
index 5b7a954..2bd9dc4 100644
--- a/media/tools/player_x11/x11_video_renderer.h
+++ b/media/tools/player_x11/x11_video_renderer.h
@@ -10,17 +10,20 @@
#include "base/lock.h"
#include "base/scoped_ptr.h"
#include "media/base/factory.h"
+#include "media/base/filters.h"
#include "media/filters/video_renderer_base.h"
class X11VideoRenderer : public media::VideoRendererBase {
public:
static media::FilterFactory* CreateFactory(Display* display,
- Window window) {
- return new media::FilterFactoryImpl2<
- X11VideoRenderer, Display*, Window>(display, window);
+ Window window,
+ MessageLoop* message_loop) {
+ return new media::FilterFactoryImpl3<
+ X11VideoRenderer, Display*, Window, MessageLoop*>(display, window,
+ message_loop);
}
- X11VideoRenderer(Display* display, Window window);
+ X11VideoRenderer(Display* display, Window window, MessageLoop* message_loop);
// This method is called to paint the current video frame to the assigned
// window.
@@ -31,10 +34,6 @@ class X11VideoRenderer : public media::VideoRendererBase {
static X11VideoRenderer* instance() { return instance_; }
- void set_glx_thread_message_loop(MessageLoop* message_loop) {
- glx_thread_message_loop_ = message_loop;
- }
-
MessageLoop* glx_thread_message_loop() {
return glx_thread_message_loop_;
}
@@ -42,7 +41,7 @@ class X11VideoRenderer : public media::VideoRendererBase {
protected:
// VideoRendererBase implementation.
virtual bool OnInitialize(media::VideoDecoder* decoder);
- virtual void OnStop();
+ virtual void OnStop(media::FilterCallback* callback);
virtual void OnFrameAvailable();
private: