| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/glue/plugins/pepper_video_decoder.h" | 5 #include "webkit/glue/plugins/pepper_video_decoder.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "third_party/ppapi/c/dev/pp_video_dev.h" | 8 #include "ppapi/c/dev/pp_video_dev.h" |
| 9 #include "third_party/ppapi/c/dev/ppb_video_decoder_dev.h" | 9 #include "ppapi/c/dev/ppb_video_decoder_dev.h" |
| 10 #include "third_party/ppapi/c/pp_completion_callback.h" | 10 #include "ppapi/c/pp_completion_callback.h" |
| 11 #include "third_party/ppapi/c/pp_errors.h" | 11 #include "ppapi/c/pp_errors.h" |
| 12 #include "webkit/glue/plugins/pepper_file_ref.h" | 12 #include "webkit/glue/plugins/pepper_file_ref.h" |
| 13 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 13 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
| 14 #include "webkit/glue/plugins/pepper_resource_tracker.h" | 14 #include "webkit/glue/plugins/pepper_resource_tracker.h" |
| 15 | 15 |
| 16 namespace pepper { | 16 namespace pepper { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 bool GetConfig(PP_Instance instance_id, | 20 bool GetConfig(PP_Instance instance_id, |
| 21 PP_VideoCodecId_Dev codec, | 21 PP_VideoCodecId_Dev codec, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 bool VideoDecoder::ReturnUncompressedDataBuffer( | 132 bool VideoDecoder::ReturnUncompressedDataBuffer( |
| 133 PP_VideoUncompressedDataBuffer_Dev& buffer) { | 133 PP_VideoUncompressedDataBuffer_Dev& buffer) { |
| 134 if (!platform_video_decoder_.get()) | 134 if (!platform_video_decoder_.get()) |
| 135 return false; | 135 return false; |
| 136 | 136 |
| 137 return platform_video_decoder_->ReturnUncompressedDataBuffer(buffer); | 137 return platform_video_decoder_->ReturnUncompressedDataBuffer(buffer); |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace pepper | 140 } // namespace pepper |
| OLD | NEW |