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

Side by Side Diff: ppapi/cpp/dev/video_decoder_dev.cc

Issue 6961018: Pepper Video Decoder API tester plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More implementation meat and clearing things all around. Created 9 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) 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 "ppapi/cpp/dev/video_decoder_dev.h" 5 #include "ppapi/cpp/dev/video_decoder_dev.h"
6 6
7 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 7 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
8 #include "ppapi/c/dev/ppp_video_decoder_dev.h" 8 #include "ppapi/c/dev/ppp_video_decoder_dev.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/cpp/common.h" 10 #include "ppapi/cpp/common.h"
(...skipping 28 matching lines...) Expand all
39 vector<uint32_t> VideoDecoder::GetConfigs( 39 vector<uint32_t> VideoDecoder::GetConfigs(
40 Instance* /* instance */, 40 Instance* /* instance */,
41 const vector<uint32_t>& /* prototype_config */) { 41 const vector<uint32_t>& /* prototype_config */) {
42 // TODO(vmr): Implement. 42 // TODO(vmr): Implement.
43 vector<uint32_t> matching_configs; 43 vector<uint32_t> matching_configs;
44 if (!has_interface<PPB_VideoDecoder_Dev>()) 44 if (!has_interface<PPB_VideoDecoder_Dev>())
45 return matching_configs; 45 return matching_configs;
46 return matching_configs; 46 return matching_configs;
47 } 47 }
48 48
49 void VideoDecoder::AssignGLESBuffers(uint32_t /* no_of_buffers */, 49 void VideoDecoder::AssignGLESBuffers(
50 const PP_GLESBuffer_Dev& /* buffers */) { 50 uint32_t /* no_of_buffers */,
51 const std::vector<PP_GLESBuffer_Dev>& /* buffers */) {
51 // TODO(vmr): Implement. 52 // TODO(vmr): Implement.
52 } 53 }
53 54
54 void VideoDecoder::AssignSysmemBuffers( 55 void VideoDecoder::AssignSysmemBuffers(
55 uint32_t /* no_of_buffers */, 56 uint32_t /* no_of_buffers */,
56 const PP_SysmemBuffer_Dev& /* buffers */) { 57 const std::vector<PP_SysmemBuffer_Dev>& /* buffers */) {
57 // TODO(vmr): Implement. 58 // TODO(vmr): Implement.
58 } 59 }
59 60
60 bool VideoDecoder::Decode( 61 bool VideoDecoder::Decode(
61 const PP_VideoBitstreamBuffer_Dev& /* bitstream_buffer */, 62 const PP_VideoBitstreamBuffer_Dev& /* bitstream_buffer */,
62 CompletionCallback /* callback */) { 63 CompletionCallback /* callback */) {
63 // TODO(vmr): Implement. 64 // TODO(vmr): Implement.
64 if (!has_interface<PPB_VideoDecoder_Dev>() || !pp_resource()) 65 if (!has_interface<PPB_VideoDecoder_Dev>() || !pp_resource())
65 return false; 66 return false;
66 return false; 67 return false;
(...skipping 11 matching lines...) Expand all
78 } 79 }
79 80
80 bool VideoDecoder::Abort(CompletionCallback /* callback */) { 81 bool VideoDecoder::Abort(CompletionCallback /* callback */) {
81 // TODO(vmr): Implement. 82 // TODO(vmr): Implement.
82 if (!has_interface<PPB_VideoDecoder_Dev>()) 83 if (!has_interface<PPB_VideoDecoder_Dev>())
83 return false; 84 return false;
84 return true; 85 return true;
85 } 86 }
86 87
87 } // namespace pp 88 } // namespace pp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698