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

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

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks Created 6 years, 8 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/c/pp_completion_callback.h" 5 #include "ppapi/c/pp_completion_callback.h"
6 #include "ppapi/c/pp_errors.h" 6 #include "ppapi/c/pp_errors.h"
7 #include "ppapi/c/private/pp_video_frame_private.h" 7 #include "ppapi/c/private/pp_video_frame_private.h"
8 #include "ppapi/c/private/ppb_video_source_private.h" 8 #include "ppapi/c/private/ppb_video_source_private.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"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 return enter.SetResult(enter.object()->GetFrame(frame, enter.callback())); 47 return enter.SetResult(enter.object()->GetFrame(frame, enter.callback()));
48 } 48 }
49 49
50 void Close(PP_Resource source) { 50 void Close(PP_Resource source) {
51 EnterResource<PPB_VideoSource_Private_API> enter(source, true); 51 EnterResource<PPB_VideoSource_Private_API> enter(source, true);
52 if (enter.succeeded()) 52 if (enter.succeeded())
53 enter.object()->Close(); 53 enter.object()->Close();
54 } 54 }
55 55
56 const PPB_VideoSource_Private_0_1 g_ppb_video_source_private_thunk_0_1 = { 56 const PPB_VideoSource_Private_0_1 g_ppb_video_source_private_thunk_0_1 = {
57 &Create, 57 &Create, &IsVideoSource, &Open, &GetFrame, &Close};
58 &IsVideoSource,
59 &Open,
60 &GetFrame,
61 &Close
62 };
63 58
64 } // namespace 59 } // namespace
65 60
66 const PPB_VideoSource_Private_0_1* GetPPB_VideoSource_Private_0_1_Thunk() { 61 const PPB_VideoSource_Private_0_1* GetPPB_VideoSource_Private_0_1_Thunk() {
67 return &g_ppb_video_source_private_thunk_0_1; 62 return &g_ppb_video_source_private_thunk_0_1;
68 } 63 }
69 64
70 } // namespace thunk 65 } // namespace thunk
71 } // namespace ppapi 66 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698