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

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

Issue 137353003: Pepper: Reduce includes in generated thunks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « ppapi/thunk/ppb_url_response_info_thunk.cc ('k') | ppapi/thunk/ppb_view_dev_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Wed Jan 8 13:30:05 2014. 5 // From ppb_video_frame.idl modified Mon Jan 13 12:02:23 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/ppb_instance_api.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 #include "ppapi/thunk/resource_creation_api.h"
14 #include "ppapi/thunk/thunk.h"
15 13
16 namespace ppapi { 14 namespace ppapi {
17 namespace thunk { 15 namespace thunk {
18 16
19 namespace { 17 namespace {
20 18
21 PP_Bool IsVideoFrame(PP_Resource resource) { 19 PP_Bool IsVideoFrame(PP_Resource resource) {
22 VLOG(4) << "PPB_VideoFrame::IsVideoFrame()"; 20 VLOG(4) << "PPB_VideoFrame::IsVideoFrame()";
23 EnterResource<PPB_VideoFrame_API> enter(resource, false); 21 EnterResource<PPB_VideoFrame_API> enter(resource, false);
24 return PP_FromBool(enter.succeeded()); 22 return PP_FromBool(enter.succeeded());
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 &GetTimestamp, 75 &GetTimestamp,
78 &SetTimestamp, 76 &SetTimestamp,
79 &GetFormat, 77 &GetFormat,
80 &GetSize, 78 &GetSize,
81 &GetDataBuffer, 79 &GetDataBuffer,
82 &GetDataBufferSize 80 &GetDataBufferSize
83 }; 81 };
84 82
85 } // namespace 83 } // namespace
86 84
87 const PPB_VideoFrame_0_1* GetPPB_VideoFrame_0_1_Thunk() { 85 PPAPI_THUNK_EXPORT const PPB_VideoFrame_0_1* GetPPB_VideoFrame_0_1_Thunk() {
88 return &g_ppb_videoframe_thunk_0_1; 86 return &g_ppb_videoframe_thunk_0_1;
89 } 87 }
90 88
91 } // namespace thunk 89 } // namespace thunk
92 } // namespace ppapi 90 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_url_response_info_thunk.cc ('k') | ppapi/thunk/ppb_view_dev_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698