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_channel_host.h" |
13 #include "content/renderer/gpu_video_decode_accelerator_host.h" | 13 #include "content/renderer/gpu_video_decode_accelerator_host.h" |
14 #include "content/renderer/gpu_video_service_host.h" | 14 #include "content/renderer/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; | |
19 | 18 |
20 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( | 19 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( |
21 VideoDecodeAccelerator::Client* client) | 20 VideoDecodeAccelerator::Client* client) |
22 : client_(client), | 21 : client_(client), |
23 decoder_(NULL) { | 22 decoder_(NULL) { |
24 DCHECK(client); | 23 DCHECK(client); |
25 } | 24 } |
26 | 25 |
27 PlatformVideoDecoderImpl::~PlatformVideoDecoderImpl() {} | 26 PlatformVideoDecoderImpl::~PlatformVideoDecoderImpl() {} |
28 | 27 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); | 143 client_->NotifyEndOfBitstreamBuffer(bitstream_buffer_id); |
145 } | 144 } |
146 | 145 |
147 void PlatformVideoDecoderImpl::NotifyFlushDone() { | 146 void PlatformVideoDecoderImpl::NotifyFlushDone() { |
148 client_->NotifyFlushDone(); | 147 client_->NotifyFlushDone(); |
149 } | 148 } |
150 | 149 |
151 void PlatformVideoDecoderImpl::NotifyAbortDone() { | 150 void PlatformVideoDecoderImpl::NotifyAbortDone() { |
152 client_->NotifyAbortDone(); | 151 client_->NotifyAbortDone(); |
153 } | 152 } |
OLD | NEW |