Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: content/renderer/media/pepper_platform_video_decoder_impl.cc

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 void PlatformVideoDecoderImpl::NotifyError( 88 void PlatformVideoDecoderImpl::NotifyError(
89 VideoDecodeAccelerator::Error error) { 89 VideoDecodeAccelerator::Error error) {
90 DCHECK(RenderThreadImpl::current()); 90 DCHECK(RenderThreadImpl::current());
91 client_->NotifyError(error); 91 client_->NotifyError(error);
92 } 92 }
93 93
94 void PlatformVideoDecoderImpl::ProvidePictureBuffers( 94 void PlatformVideoDecoderImpl::ProvidePictureBuffers(
95 uint32 requested_num_of_buffers, 95 uint32 requested_num_of_buffers,
96 const gfx::Size& dimensions) { 96 const gfx::Size& dimensions,
97 media::VideoDecodeAccelerator::TextureTarget texture_target) {
97 DCHECK(RenderThreadImpl::current()); 98 DCHECK(RenderThreadImpl::current());
98 client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions); 99 client_->ProvidePictureBuffers(requested_num_of_buffers, dimensions,
100 texture_target);
99 } 101 }
100 102
101 void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) { 103 void PlatformVideoDecoderImpl::DismissPictureBuffer(int32 picture_buffer_id) {
102 DCHECK(RenderThreadImpl::current()); 104 DCHECK(RenderThreadImpl::current());
103 client_->DismissPictureBuffer(picture_buffer_id); 105 client_->DismissPictureBuffer(picture_buffer_id);
104 } 106 }
105 107
106 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) { 108 void PlatformVideoDecoderImpl::PictureReady(const media::Picture& picture) {
107 DCHECK(RenderThreadImpl::current()); 109 DCHECK(RenderThreadImpl::current());
108 client_->PictureReady(picture); 110 client_->PictureReady(picture);
(...skipping 11 matching lines...) Expand all
120 122
121 void PlatformVideoDecoderImpl::NotifyFlushDone() { 123 void PlatformVideoDecoderImpl::NotifyFlushDone() {
122 DCHECK(RenderThreadImpl::current()); 124 DCHECK(RenderThreadImpl::current());
123 client_->NotifyFlushDone(); 125 client_->NotifyFlushDone();
124 } 126 }
125 127
126 void PlatformVideoDecoderImpl::NotifyResetDone() { 128 void PlatformVideoDecoderImpl::NotifyResetDone() {
127 DCHECK(RenderThreadImpl::current()); 129 DCHECK(RenderThreadImpl::current());
128 client_->NotifyResetDone(); 130 client_->NotifyResetDone();
129 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698