| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/pepper_platform_video_decoder_impl.h" | 5 #include "content/renderer/pepper_platform_video_decoder_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); | 105 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); |
| 106 client_->DismissPictureBuffer(picture_buffer_id); | 106 client_->DismissPictureBuffer(picture_buffer_id); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { | 109 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { |
| 110 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); | 110 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); |
| 111 client_->PictureReady(picture); | 111 client_->PictureReady(picture); |
| 112 } | 112 } |
| 113 | 113 |
| 114 void PlatformVideoDecoderImpl::NotifyInitializeDone() { | 114 void PlatformVideoDecoderImpl::NotifyInitializeDone() { |
| 115 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); | 115 NOTREACHED() << "GpuVideoDecodeAcceleratorHost::Initialize is synchronous!"; |
| 116 client_->NotifyInitializeDone(); | |
| 117 } | 116 } |
| 118 | 117 |
| 119 void PlatformVideoDecoderImpl::NotifyEndOfBitstreamBuffer( | 118 void PlatformVideoDecoderImpl::NotifyEndOfBitstreamBuffer( |
| 120 int32 bitstream_buffer_id) { | 119 int32 bitstream_buffer_id) { |
| 121 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); | 120 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); |
| 122 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); | 121 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); |
| 123 } | 122 } |
| 124 | 123 |
| 125 void PlatformVideoDecoderImpl::NotifyFlushDone() { | 124 void PlatformVideoDecoderImpl::NotifyFlushDone() { |
| 126 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); | 125 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); |
| 127 client_->NotifyFlushDone(); | 126 client_->NotifyFlushDone(); |
| 128 } | 127 } |
| 129 | 128 |
| 130 void PlatformVideoDecoderImpl::NotifyResetDone() { | 129 void PlatformVideoDecoderImpl::NotifyResetDone() { |
| 131 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); | 130 DCHECK_EQ(RenderThread::current()->message_loop(), MessageLoop::current()); |
| 132 client_->NotifyResetDone(); | 131 client_->NotifyResetDone(); |
| 133 } | 132 } |
| OLD | NEW |