| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/media/pepper_platform_video_decoder_impl.h" | 5 #include "content/renderer/media/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/gpu_channel_host.h" | 12 #include "content/common/gpu/client/gpu_channel_host.h" |
| 13 #include "content/renderer/render_thread_impl.h" | 13 #include "content/renderer/render_thread_impl.h" |
| 14 | 14 |
| 15 using media::BitstreamBuffer; | 15 using media::BitstreamBuffer; |
| 16 | 16 |
| 17 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( | 17 PlatformVideoDecoderImpl::PlatformVideoDecoderImpl( |
| 18 VideoDecodeAccelerator::Client* client, | 18 VideoDecodeAccelerator::Client* client, |
| 19 int32 command_buffer_route_id) | 19 int32 command_buffer_route_id) |
| 20 : client_(client), | 20 : client_(client), |
| 21 command_buffer_route_id_(command_buffer_route_id) { | 21 command_buffer_route_id_(command_buffer_route_id) { |
| 22 DCHECK(client); | 22 DCHECK(client); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 void PlatformVideoDecoderImpl::NotifyFlushDone() { | 118 void PlatformVideoDecoderImpl::NotifyFlushDone() { |
| 119 DCHECK(RenderThreadImpl::current()); | 119 DCHECK(RenderThreadImpl::current()); |
| 120 client_->NotifyFlushDone(); | 120 client_->NotifyFlushDone(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void PlatformVideoDecoderImpl::NotifyResetDone() { | 123 void PlatformVideoDecoderImpl::NotifyResetDone() { |
| 124 DCHECK(RenderThreadImpl::current()); | 124 DCHECK(RenderThreadImpl::current()); |
| 125 client_->NotifyResetDone(); | 125 client_->NotifyResetDone(); |
| 126 } | 126 } |
| OLD | NEW |