Index: content/renderer/pepper_platform_video_decoder_impl.cc |
diff --git a/content/renderer/pepper_platform_video_decoder_impl.cc b/content/renderer/pepper_platform_video_decoder_impl.cc |
index 7d46cf44728b4ffc3d92a720c48fb619fa7716ea..b12d565c2cb905b2fce4e30119b3d7fdb33f9386 100644 |
--- a/content/renderer/pepper_platform_video_decoder_impl.cc |
+++ b/content/renderer/pepper_platform_video_decoder_impl.cc |
@@ -51,9 +51,6 @@ bool PlatformVideoDecoderImpl::Initialize(const std::vector<uint32>& config) { |
// Set a callback to ensure decoder is only initialized after channel is |
// connected and GpuVidoServiceHost message filter is added to channel. |
- // |
- // TODO(vrk): Initialize should take a callback to be called (on the |
- // renderer's thread) when initialization is completed. |
base::Closure initialize = base::Bind( |
&PlatformVideoDecoderImpl::InitializeDecoder, |
base::Unretained(this), |
@@ -139,6 +136,10 @@ void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { |
client_->PictureReady(picture); |
} |
+void PlatformVideoDecoderImpl::NotifyInitializeDone() { |
+ client_->NotifyInitializeDone(); |
+} |
+ |
void PlatformVideoDecoderImpl::NotifyEndOfBitstreamBuffer( |
int32 bitstream_buffer_id) { |
client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); |