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

Unified Diff: ppapi/thunk/ppb_audio_config_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_audio_config_thunk.cc
diff --git a/ppapi/thunk/ppb_audio_config_thunk.cc b/ppapi/thunk/ppb_audio_config_thunk.cc
index b06affd5c0df66ced7a6e2594933ee98da2c6133..74a65d23e0cd76ce723cf93b1ee7f42b375943c8 100644
--- a/ppapi/thunk/ppb_audio_config_thunk.cc
+++ b/ppapi/thunk/ppb_audio_config_thunk.cc
@@ -20,15 +20,15 @@ PP_Resource CreateStereo16bit(PP_Instance instance,
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
- return enter.functions()->CreateAudioConfig(instance, sample_rate,
- sample_frame_count);
+ return enter.functions()->CreateAudioConfig(
+ instance, sample_rate, sample_frame_count);
}
uint32_t RecommendSampleFrameCount_1_0(PP_AudioSampleRate sample_rate,
uint32_t requested_sample_frame_count) {
VLOG(4) << "PPB_AudioConfig::RecommendSampleFrameCount()";
- return PPB_AudioConfig_Shared::RecommendSampleFrameCount_1_0(sample_rate,
- requested_sample_frame_count);
+ return PPB_AudioConfig_Shared::RecommendSampleFrameCount_1_0(
+ sample_rate, requested_sample_frame_count);
}
uint32_t RecommendSampleFrameCount_1_1(PP_Instance instance,
@@ -38,11 +38,10 @@ uint32_t RecommendSampleFrameCount_1_1(PP_Instance instance,
EnterInstance enter(instance);
if (enter.failed())
return 0;
- return PPB_AudioConfig_Shared::RecommendSampleFrameCount_1_1(instance,
- sample_rate, requested_sample_frame_count);
+ return PPB_AudioConfig_Shared::RecommendSampleFrameCount_1_1(
+ instance, sample_rate, requested_sample_frame_count);
}
-
PP_Bool IsAudioConfig(PP_Resource resource) {
VLOG(4) << "PPB_AudioConfig::IsAudioConfig()";
EnterResource<PPB_AudioConfig_API> enter(resource, false);
@@ -74,22 +73,12 @@ PP_AudioSampleRate RecommendSampleRate(PP_Instance instance) {
}
const PPB_AudioConfig_1_0 g_ppb_audio_config_thunk_1_0 = {
- &CreateStereo16bit,
- &RecommendSampleFrameCount_1_0,
- &IsAudioConfig,
- &GetSampleRate,
- &GetSampleFrameCount
-};
+ &CreateStereo16bit, &RecommendSampleFrameCount_1_0, &IsAudioConfig,
teravest 2014/04/16 15:19:16 :(
+ &GetSampleRate, &GetSampleFrameCount};
const PPB_AudioConfig_1_1 g_ppb_audio_config_thunk_1_1 = {
- &CreateStereo16bit,
- &RecommendSampleFrameCount_1_1,
- &IsAudioConfig,
- &GetSampleRate,
- &GetSampleFrameCount,
- &RecommendSampleRate
-};
-
+ &CreateStereo16bit, &RecommendSampleFrameCount_1_1, &IsAudioConfig,
+ &GetSampleRate, &GetSampleFrameCount, &RecommendSampleRate};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698