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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 6 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/common/gpu/media/gpu_video_decode_accelerator.h" 5 #include "content/common/gpu/media/gpu_video_decode_accelerator.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 OnReusePictureBuffer) 62 OnReusePictureBuffer)
63 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderMsg_Flush, OnFlush) 63 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderMsg_Flush, OnFlush)
64 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderMsg_Reset, OnReset) 64 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderMsg_Reset, OnReset)
65 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderMsg_Destroy, OnDestroy) 65 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderMsg_Destroy, OnDestroy)
66 IPC_MESSAGE_UNHANDLED(handled = false) 66 IPC_MESSAGE_UNHANDLED(handled = false)
67 IPC_END_MESSAGE_MAP() 67 IPC_END_MESSAGE_MAP()
68 return handled; 68 return handled;
69 } 69 }
70 70
71 void GpuVideoDecodeAccelerator::ProvidePictureBuffers( 71 void GpuVideoDecodeAccelerator::ProvidePictureBuffers(
72 uint32 requested_num_of_buffers, const gfx::Size& dimensions) { 72 uint32 requested_num_of_buffers,
73 const gfx::Size& dimensions,
74 uint32 texture_target) {
73 if (!Send(new AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers( 75 if (!Send(new AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers(
74 host_route_id_, requested_num_of_buffers, dimensions))) { 76 host_route_id_, requested_num_of_buffers, dimensions,
77 texture_target))) {
75 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers) " 78 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ProvidePictureBuffers) "
76 << "failed"; 79 << "failed";
77 } 80 }
78 } 81 }
79 82
80 void GpuVideoDecodeAccelerator::DismissPictureBuffer( 83 void GpuVideoDecodeAccelerator::DismissPictureBuffer(
81 int32 picture_buffer_id) { 84 int32 picture_buffer_id) {
82 // Notify client that picture buffer is now unused. 85 // Notify client that picture buffer is now unused.
83 if (!Send(new AcceleratedVideoDecoderHostMsg_DismissPictureBuffer( 86 if (!Send(new AcceleratedVideoDecoderHostMsg_DismissPictureBuffer(
84 host_route_id_, picture_buffer_id))) { 87 host_route_id_, picture_buffer_id))) {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 238
236 void GpuVideoDecodeAccelerator::NotifyResetDone() { 239 void GpuVideoDecodeAccelerator::NotifyResetDone() {
237 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) 240 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_)))
238 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; 241 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed";
239 } 242 }
240 243
241 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { 244 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) {
242 DCHECK(sender_); 245 DCHECK(sender_);
243 return sender_->Send(message); 246 return sender_->Send(message);
244 } 247 }
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.h ('k') | content/common/gpu/media/mac_video_decode_accelerator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698