| 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" |
| 11 #include "content/common/child_process.h" | 11 #include "content/common/child_process.h" |
| 12 #include "content/renderer/gpu_channel_host.h" | 12 #include "content/renderer/gpu/gpu_channel_host.h" |
| 13 #include "content/renderer/gpu_video_decode_accelerator_host.h" | 13 #include "content/renderer/gpu/gpu_video_decode_accelerator_host.h" |
| 14 #include "content/renderer/gpu_video_service_host.h" | 14 #include "content/renderer/gpu/gpu_video_service_host.h" |
| 15 #include "content/renderer/render_thread.h" | 15 #include "content/renderer/render_thread.h" |
| 16 | 16 |
| 17 using media::BitstreamBuffer; | 17 using media::BitstreamBuffer; |
| 18 using media::VideoDecodeAcceleratorCallback; | 18 using media::VideoDecodeAcceleratorCallback; |
| 19 | 19 |
| 20 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( | 20 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( |
| 21 VideoDecodeAccelerator::Client* client) | 21 VideoDecodeAccelerator::Client* client) |
| 22 : client_(client), | 22 : client_(client), |
| 23 decoder_(NULL) { | 23 decoder_(NULL) { |
| 24 DCHECK(client); | 24 DCHECK(client); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); | 144 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void PlatformVideoDecoderImpl::NotifyFlushDone() { | 147 void PlatformVideoDecoderImpl::NotifyFlushDone() { |
| 148 client_->NotifyFlushDone(); | 148 client_->NotifyFlushDone(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 void PlatformVideoDecoderImpl::NotifyAbortDone() { | 151 void PlatformVideoDecoderImpl::NotifyAbortDone() { |
| 152 client_->NotifyAbortDone(); | 152 client_->NotifyAbortDone(); |
| 153 } | 153 } |
| OLD | NEW |