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" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 } | 83 } |
84 | 84 |
85 void PlatformVideoDecoderImpl::NotifyError( | 85 void PlatformVideoDecoderImpl::NotifyError( |
86 VideoDecodeAccelerator::Error error) { | 86 VideoDecodeAccelerator::Error error) { |
87 DCHECK(RenderThreadImpl::current()); | 87 DCHECK(RenderThreadImpl::current()); |
88 client_->NotifyError(error); | 88 client_->NotifyError(error); |
89 } | 89 } |
90 | 90 |
91 void PlatformVideoDecoderImpl::ProvidePictureBuffers( | 91 void PlatformVideoDecoderImpl::ProvidePictureBuffers( |
92 uint32 requested_num_of_buffers, | 92 uint32 requested_num_of_buffers, |
93 const gfx::Size& dimensions) { | 93 const gfx::Size& dimensions, |
| 94 uint32 texture_target) { |
94 DCHECK(RenderThreadImpl::current()); | 95 DCHECK(RenderThreadImpl::current()); |
95 client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions); | 96 client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions, |
| 97 texture_target); |
96 } | 98 } |
97 | 99 |
98 void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) { | 100 void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) { |
99 DCHECK(RenderThreadImpl::current()); | 101 DCHECK(RenderThreadImpl::current()); |
100 client_->DismissPictureBuffer(picture_buffer_id); | 102 client_->DismissPictureBuffer(picture_buffer_id); |
101 } | 103 } |
102 | 104 |
103 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { | 105 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { |
104 DCHECK(RenderThreadImpl::current()); | 106 DCHECK(RenderThreadImpl::current()); |
105 client_->PictureReady(picture); | 107 client_->PictureReady(picture); |
(...skipping 11 matching lines...) Expand all Loading... |
117 | 119 |
118 void PlatformVideoDecoderImpl::NotifyFlushDone() { | 120 void PlatformVideoDecoderImpl::NotifyFlushDone() { |
119 DCHECK(RenderThreadImpl::current()); | 121 DCHECK(RenderThreadImpl::current()); |
120 client_->NotifyFlushDone(); | 122 client_->NotifyFlushDone(); |
121 } | 123 } |
122 | 124 |
123 void PlatformVideoDecoderImpl::NotifyResetDone() { | 125 void PlatformVideoDecoderImpl::NotifyResetDone() { |
124 DCHECK(RenderThreadImpl::current()); | 126 DCHECK(RenderThreadImpl::current()); |
125 client_->NotifyResetDone(); | 127 client_->NotifyResetDone(); |
126 } | 128 } |
OLD | NEW |