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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.cc

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino 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/common/gpu/client/gpu_video_decode_accelerator_host.h" 5 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "content/common/gpu/client/gpu_channel_host.h" 10 #include "content/common/gpu/client/gpu_channel_host.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 OnResetDone) 52 OnResetDone)
53 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderHostMsg_ErrorNotification, 53 IPC_MESSAGE_HANDLER(AcceleratedVideoDecoderHostMsg_ErrorNotification,
54 OnErrorNotification) 54 OnErrorNotification)
55 IPC_MESSAGE_UNHANDLED(handled = false) 55 IPC_MESSAGE_UNHANDLED(handled = false)
56 IPC_END_MESSAGE_MAP() 56 IPC_END_MESSAGE_MAP()
57 DCHECK(handled); 57 DCHECK(handled);
58 return handled; 58 return handled;
59 } 59 }
60 60
61 bool GpuVideoDecodeAcceleratorHost::Initialize( 61 bool GpuVideoDecodeAcceleratorHost::Initialize(
62 media::VideoCodecProfile profile) { 62 media::VideoCodecProfile profile,
63 const gfx::Size& frame_size,
64 const std::vector<uint8_t>& extra_data) {
63 NOTREACHED(); 65 NOTREACHED();
64 return true; 66 return true;
65 } 67 }
66 68
67 void GpuVideoDecodeAcceleratorHost::Decode( 69 void GpuVideoDecodeAcceleratorHost::Decode(
68 const media::BitstreamBuffer& bitstream_buffer) { 70 const media::BitstreamBuffer& bitstream_buffer) {
69 DCHECK(CalledOnValidThread()); 71 DCHECK(CalledOnValidThread());
70 base::SharedMemoryHandle buffer_handle = bitstream_buffer.handle(); 72 base::SharedMemoryHandle buffer_handle = bitstream_buffer.handle();
71 #if defined(OS_WIN) 73 #if defined(OS_WIN)
72 if (!content::BrokerDuplicateHandle(bitstream_buffer.handle(), 74 if (!content::BrokerDuplicateHandle(bitstream_buffer.handle(),
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 client_->NotifyResetDone(); 181 client_->NotifyResetDone();
180 } 182 }
181 183
182 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) { 184 void GpuVideoDecodeAcceleratorHost::OnErrorNotification(uint32 error) {
183 DCHECK(CalledOnValidThread()); 185 DCHECK(CalledOnValidThread());
184 if (!client_) 186 if (!client_)
185 return; 187 return;
186 client_->NotifyError( 188 client_->NotifyError(
187 static_cast<media::VideoDecodeAccelerator::Error>(error)); 189 static_cast<media::VideoDecodeAccelerator::Error>(error));
188 } 190 }
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_video_decode_accelerator_host.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698