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

Unified Diff: ppapi/thunk/ppb_video_destination_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 side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_video_destination_private_thunk.cc
diff --git a/ppapi/thunk/ppb_video_destination_private_thunk.cc b/ppapi/thunk/ppb_video_destination_private_thunk.cc
index 325f0bcae23adbfbba8abc31e8737413426603de..11ba64fd3aad4f4225bdc4e6d07d31d936ffb41e 100644
--- a/ppapi/thunk/ppb_video_destination_private_thunk.cc
+++ b/ppapi/thunk/ppb_video_destination_private_thunk.cc
@@ -33,15 +33,14 @@ PP_Bool IsVideoDestination(PP_Resource resource) {
int32_t Open(PP_Resource destination,
PP_Var stream_url,
PP_CompletionCallback callback) {
- EnterResource<PPB_VideoDestination_Private_API> enter(destination,
- callback, true);
+ EnterResource<PPB_VideoDestination_Private_API> enter(
+ destination, callback, true);
if (enter.failed())
return enter.retval();
return enter.SetResult(enter.object()->Open(stream_url, enter.callback()));
}
-int32_t PutFrame(PP_Resource destination,
- const PP_VideoFrame_Private* frame) {
+int32_t PutFrame(PP_Resource destination, const PP_VideoFrame_Private* frame) {
EnterResource<PPB_VideoDestination_Private_API> enter(destination, true);
if (enter.failed())
return enter.retval();
@@ -55,18 +54,13 @@ void Close(PP_Resource destination) {
}
const PPB_VideoDestination_Private_0_1
- g_ppb_video_destination_private_thunk_0_1 = {
- &Create,
- &IsVideoDestination,
- &Open,
- &PutFrame,
- &Close
-};
+ g_ppb_video_destination_private_thunk_0_1 = {&Create, &IsVideoDestination,
+ &Open, &PutFrame, &Close};
} // namespace
const PPB_VideoDestination_Private_0_1*
- GetPPB_VideoDestination_Private_0_1_Thunk() {
+GetPPB_VideoDestination_Private_0_1_Thunk() {
return &g_ppb_video_destination_private_thunk_0_1;
}

Powered by Google App Engine
This is Rietveld 408576698