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

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: Fixing a few parameter types Created 9 years, 8 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) 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 const std::vector<uint32> VideoDecodeAcceleratorHost::GetConfigs(
40 const std::vector<uint32>& prototype_config) { 40 const std::vector<uint32>& prototype_config) {
41 // TODO(vmr): implement. 41 // TODO(vmr): implement.
42 NOTIMPLEMENTED(); 42 NOTIMPLEMENTED();
43 return configs_; 43 std::vector<uint32> configs;
44 return configs;
44 } 45 }
45 46
46 bool VideoDecodeAcceleratorHost::Initialize( 47 bool VideoDecodeAcceleratorHost::Initialize(
47 const std::vector<uint32>& config) { 48 const std::vector<uint32>& config) {
48 // TODO(vmr): implement. 49 // TODO(vmr): implement.
49 NOTIMPLEMENTED(); 50 NOTIMPLEMENTED();
50 return false; 51 return false;
51 } 52 }
52 53
53 bool VideoDecodeAcceleratorHost::Decode( 54 bool VideoDecodeAcceleratorHost::Decode(
54 media::BitstreamBuffer* bitstream_buffer, 55 const media::BitstreamBuffer& bitstream_buffer,
55 VideoDecodeAcceleratorCallback* callback) { 56 VideoDecodeAcceleratorCallback* callback) {
56 // TODO(vmr): implement. 57 // TODO(vmr): implement.
57 NOTIMPLEMENTED(); 58 NOTIMPLEMENTED();
58 return false; 59 return false;
59 } 60 }
60 61
61 void VideoDecodeAcceleratorHost::AssignPictureBuffer( 62 void VideoDecodeAcceleratorHost::AssignPictureBuffer(
62 std::vector<PictureBuffer*> picture_buffers) { 63 const std::vector<media::PictureBuffer>& picture_buffers) {
63 // TODO(vmr): implement. 64 // TODO(vmr): implement.
64 NOTIMPLEMENTED(); 65 NOTIMPLEMENTED();
65 } 66 }
66 67
67 void VideoDecodeAcceleratorHost::ReusePictureBuffer( 68 void VideoDecodeAcceleratorHost::ReusePictureBuffer(uint32 picture_buffer_id) {
68 PictureBuffer* picture_buffer) {
69 // TODO(vmr): implement. 69 // TODO(vmr): implement.
70 NOTIMPLEMENTED(); 70 NOTIMPLEMENTED();
71 } 71 }
72 72
73 bool VideoDecodeAcceleratorHost::Flush( 73 bool VideoDecodeAcceleratorHost::Flush(
74 VideoDecodeAcceleratorCallback* callback) { 74 VideoDecodeAcceleratorCallback* callback) {
75 // TODO(vmr): implement. 75 // TODO(vmr): implement.
76 NOTIMPLEMENTED(); 76 NOTIMPLEMENTED();
77 return false; 77 return false;
78 } 78 }
79 79
80 bool VideoDecodeAcceleratorHost::Abort( 80 bool VideoDecodeAcceleratorHost::Abort(
81 VideoDecodeAcceleratorCallback* callback) { 81 VideoDecodeAcceleratorCallback* callback) {
82 // TODO(vmr): implement. 82 // TODO(vmr): implement.
83 NOTIMPLEMENTED(); 83 NOTIMPLEMENTED();
84 return false; 84 return false;
85 } 85 }
86 86
87 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoDecodeAcceleratorHost); 87 DISABLE_RUNNABLE_METHOD_REFCOUNT(VideoDecodeAcceleratorHost);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698