| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // From ppb_video_frame.idl modified Mon Apr 7 08:56:43 2014. | 5 // From ppb_video_frame.idl modified Wed Jan 27 17:10:16 2016. |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/ppb_video_frame.h" | 10 #include "ppapi/c/ppb_video_frame.h" |
| 11 #include "ppapi/shared_impl/tracked_callback.h" | 11 #include "ppapi/shared_impl/tracked_callback.h" |
| 12 #include "ppapi/thunk/enter.h" | 12 #include "ppapi/thunk/enter.h" |
| 13 #include "ppapi/thunk/ppapi_thunk_export.h" | 13 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 14 #include "ppapi/thunk/ppb_video_frame_api.h" | 14 #include "ppapi/thunk/ppb_video_frame_api.h" |
| 15 | 15 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 | 66 |
| 67 uint32_t GetDataBufferSize(PP_Resource frame) { | 67 uint32_t GetDataBufferSize(PP_Resource frame) { |
| 68 VLOG(4) << "PPB_VideoFrame::GetDataBufferSize()"; | 68 VLOG(4) << "PPB_VideoFrame::GetDataBufferSize()"; |
| 69 EnterResource<PPB_VideoFrame_API> enter(frame, true); | 69 EnterResource<PPB_VideoFrame_API> enter(frame, true); |
| 70 if (enter.failed()) | 70 if (enter.failed()) |
| 71 return 0; | 71 return 0; |
| 72 return enter.object()->GetDataBufferSize(); | 72 return enter.object()->GetDataBufferSize(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 const PPB_VideoFrame_0_1 g_ppb_videoframe_thunk_0_1 = {&IsVideoFrame, | 75 const PPB_VideoFrame_0_1 g_ppb_videoframe_thunk_0_1 = { |
| 76 &GetTimestamp, | 76 &IsVideoFrame, &GetTimestamp, &SetTimestamp, &GetFormat, |
| 77 &SetTimestamp, | 77 &GetSize, &GetDataBuffer, &GetDataBufferSize}; |
| 78 &GetFormat, | |
| 79 &GetSize, | |
| 80 &GetDataBuffer, | |
| 81 &GetDataBufferSize}; | |
| 82 | 78 |
| 83 } // namespace | 79 } // namespace |
| 84 | 80 |
| 85 PPAPI_THUNK_EXPORT const PPB_VideoFrame_0_1* GetPPB_VideoFrame_0_1_Thunk() { | 81 PPAPI_THUNK_EXPORT const PPB_VideoFrame_0_1* GetPPB_VideoFrame_0_1_Thunk() { |
| 86 return &g_ppb_videoframe_thunk_0_1; | 82 return &g_ppb_videoframe_thunk_0_1; |
| 87 } | 83 } |
| 88 | 84 |
| 89 } // namespace thunk | 85 } // namespace thunk |
| 90 } // namespace ppapi | 86 } // namespace ppapi |
| OLD | NEW |