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

Side by Side Diff: content/renderer/video_decode_accelerator_host.cc

Issue 6901036: Update VideoDecode PPAPI structs to be consistent with media structures, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make try bots happy Created 9 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
« no previous file with comments | « content/renderer/video_decode_accelerator_host.h ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/video_decode_accelerator_host.h" 5 #include "content/renderer/video_decode_accelerator_host.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/task.h" 8 #include "base/task.h"
9 9
10 using media::VideoDecodeAccelerator; 10 using media::VideoDecodeAccelerator;
(...skipping 18 matching lines...) Expand all
29 void VideoDecodeAcceleratorHost::OnChannelError() { 29 void VideoDecodeAcceleratorHost::OnChannelError() {
30 ipc_sender_ = NULL; 30 ipc_sender_ = NULL;
31 } 31 }
32 32
33 bool VideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) { 33 bool VideoDecodeAcceleratorHost::OnMessageReceived(const IPC::Message& msg) {
34 bool handled = true; 34 bool handled = true;
35 DCHECK(handled); 35 DCHECK(handled);
36 return handled; 36 return handled;
37 } 37 }
38 38
39 const std::vector<uint32>& VideoDecodeAcceleratorHost::GetConfig( 39 void VideoDecodeAcceleratorHost::GetConfigs(
40 const std::vector<uint32>& prototype_config) { 40 const std::vector<uint32>& requested_configs,
41 std::vector<uint32>* matched_configs) {
41 // TODO(vmr): implement. 42 // TODO(vmr): implement.
42 NOTIMPLEMENTED(); 43 NOTIMPLEMENTED();
43 return configs_;
44 } 44 }
45 45
46 bool VideoDecodeAcceleratorHost::Initialize( 46 bool VideoDecodeAcceleratorHost::Initialize(
47 const std::vector<uint32>& config) { 47 const std::vector<uint32>& config) {
48 // TODO(vmr): implement. 48 // TODO(vmr): implement.
49 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
50 return false; 50 return false;
51 } 51 }
52 52
53 bool VideoDecodeAcceleratorHost::Decode( 53 bool VideoDecodeAcceleratorHost::Decode(
54 media::BitstreamBuffer* bitstream_buffer, 54 const media::BitstreamBuffer& bitstream_buffer,
55 VideoDecodeAcceleratorCallback* callback) { 55 VideoDecodeAcceleratorCallback* callback) {
56 // TODO(vmr): implement. 56 // TODO(vmr): implement.
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 return false; 58 return false;
59 } 59 }
60 60
61 void VideoDecodeAcceleratorHost::AssignPictureBuffer( 61 void VideoDecodeAcceleratorHost::AssignGLESBuffers(
62 std::vector<PictureBuffer*> picture_buffers) { 62 const std::vector<media::GLESBuffer>& buffers) {
63 // TODO(vmr): implement. 63 // TODO(vmr): implement.
64 NOTIMPLEMENTED(); 64 NOTIMPLEMENTED();
65 } 65 }
66 66
67 void VideoDecodeAcceleratorHost::ReusePictureBuffer( 67 void VideoDecodeAcceleratorHost::AssignSysmemBuffers(
68 PictureBuffer* picture_buffer) { 68 const std::vector<media::SysmemBuffer>& buffers) {
69 // TODO(vmr): implement. 69 // TODO(vmr): implement.
70 NOTIMPLEMENTED(); 70 NOTIMPLEMENTED();
71 } 71 }
72
73 void VideoDecodeAcceleratorHost::ReusePictureBuffer(uint32 picture_buffer_id) {
74 // TODO(vmr): implement.
75 NOTIMPLEMENTED();
76 }
72 77
73 bool VideoDecodeAcceleratorHost::Flush( 78 bool VideoDecodeAcceleratorHost::Flush(
74 VideoDecodeAcceleratorCallback* callback) { 79 VideoDecodeAcceleratorCallback* callback) {
75 // TODO(vmr): implement. 80 // TODO(vmr): implement.
76 NOTIMPLEMENTED(); 81 NOTIMPLEMENTED();
77 return false; 82 return false;
78 } 83 }
79 84
80 bool VideoDecodeAcceleratorHost::Abort( 85 bool VideoDecodeAcceleratorHost::Abort(
81 VideoDecodeAcceleratorCallback* callback) { 86 VideoDecodeAcceleratorCallback* callback) {
82 // TODO(vmr): implement. 87 // TODO(vmr): implement.
83 NOTIMPLEMENTED(); 88 NOTIMPLEMENTED();
84 return false; 89 return false;
85 } 90 }
86 91
87 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoDecodeAcceleratorHost); 92 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoDecodeAcceleratorHost);
OLDNEW
« no previous file with comments | « content/renderer/video_decode_accelerator_host.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698