| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |