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

Side by Side Diff: ppapi/thunk/ppb_video_frame_thunk.cc

Issue 1412323002: ppapi: Support up to 32 subsamples in PP_EncryptedBlockInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
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 Fri Jun 13 10:40:42 2014.
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_video_frame.h" 8 #include "ppapi/c/ppb_video_frame.h"
9 #include "ppapi/shared_impl/tracked_callback.h" 9 #include "ppapi/shared_impl/tracked_callback.h"
10 #include "ppapi/thunk/enter.h" 10 #include "ppapi/thunk/enter.h"
11 #include "ppapi/thunk/ppapi_thunk_export.h" 11 #include "ppapi/thunk/ppapi_thunk_export.h"
12 #include "ppapi/thunk/ppb_video_frame_api.h" 12 #include "ppapi/thunk/ppb_video_frame_api.h"
13 13
14 namespace ppapi { 14 namespace ppapi {
15 namespace thunk { 15 namespace thunk {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 uint32_t GetDataBufferSize(PP_Resource frame) { 65 uint32_t GetDataBufferSize(PP_Resource frame) {
66 VLOG(4) << "PPB_VideoFrame::GetDataBufferSize()"; 66 VLOG(4) << "PPB_VideoFrame::GetDataBufferSize()";
67 EnterResource<PPB_VideoFrame_API> enter(frame, true); 67 EnterResource<PPB_VideoFrame_API> enter(frame, true);
68 if (enter.failed()) 68 if (enter.failed())
69 return 0; 69 return 0;
70 return enter.object()->GetDataBufferSize(); 70 return enter.object()->GetDataBufferSize();
71 } 71 }
72 72
73 const PPB_VideoFrame_0_1 g_ppb_videoframe_thunk_0_1 = {&IsVideoFrame, 73 const PPB_VideoFrame_0_1 g_ppb_videoframe_thunk_0_1 = {
74 &GetTimestamp, 74 &IsVideoFrame, &GetTimestamp, &SetTimestamp, &GetFormat,
75 &SetTimestamp, 75 &GetSize, &GetDataBuffer, &GetDataBufferSize};
76 &GetFormat,
77 &GetSize,
78 &GetDataBuffer,
79 &GetDataBufferSize};
80 76
81 } // namespace 77 } // namespace
82 78
83 PPAPI_THUNK_EXPORT const PPB_VideoFrame_0_1* GetPPB_VideoFrame_0_1_Thunk() { 79 PPAPI_THUNK_EXPORT const PPB_VideoFrame_0_1* GetPPB_VideoFrame_0_1_Thunk() {
84 return &g_ppb_videoframe_thunk_0_1; 80 return &g_ppb_videoframe_thunk_0_1;
85 } 81 }
86 82
87 } // namespace thunk 83 } // namespace thunk
88 } // namespace ppapi 84 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698