Index: webkit/media/webmediaplayer_impl.h |
diff --git a/webkit/media/webmediaplayer_impl.h b/webkit/media/webmediaplayer_impl.h |
index 2826e9074e407218cafca43dfd8c45e645d31b66..8aba81dbd1b8cc7a4efc1542c4f2e09039956548 100644 |
--- a/webkit/media/webmediaplayer_impl.h |
+++ b/webkit/media/webmediaplayer_impl.h |
@@ -30,6 +30,7 @@ |
#include "media/base/audio_renderer_sink.h" |
#include "media/base/decryptor.h" |
#include "media/base/pipeline.h" |
+#include "media/filters/gpu_video_decoder.h" |
#include "media/filters/skcanvas_video_renderer.h" |
#include "skia/ext/platform_canvas.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h" |
@@ -253,6 +254,10 @@ class WebMediaPlayerImpl |
// painted. |
void FrameReady(const scoped_refptr<media::VideoFrame>& frame); |
+ // Builds a FilterCollection based on the current configuration of |
+ // WebMediaPlayerImpl. |
+ scoped_ptr<media::FilterCollection> BuildFilterCollection(); |
+ |
WebKit::WebFrame* frame_; |
// TODO(hclam): get rid of these members and read from the pipeline directly. |
@@ -266,7 +271,6 @@ class WebMediaPlayerImpl |
// for DCHECKs so methods calls won't execute in the wrong thread. |
const scoped_refptr<base::MessageLoopProxy> main_loop_; |
- scoped_ptr<media::FilterCollection> filter_collection_; |
scoped_refptr<media::Pipeline> pipeline_; |
base::Thread media_thread_; |
@@ -310,6 +314,9 @@ class WebMediaPlayerImpl |
bool incremented_externally_allocated_memory_; |
+ // Factories for supporting GpuVideoDecoder. May be null. |
+ scoped_refptr<media::GpuVideoDecoder::Factories> gpu_factories_; |
+ |
// Routes audio playback to either AudioRendererSink or WebAudio. |
scoped_refptr<WebAudioSourceProviderImpl> audio_source_provider_; |