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

Unified Diff: content/renderer/pepper/ppb_audio_impl.cc

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « content/renderer/pepper/ppb_audio_impl.h ('k') | content/renderer/pepper/ppb_broker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_audio_impl.cc
diff --git a/content/renderer/pepper/ppb_audio_impl.cc b/content/renderer/pepper/ppb_audio_impl.cc
index 864c61d8c70303c1bb2e996fae13d7c2ecd23b1d..652c697c27aaa238c6f40a7a35e932152ddb4ce6 100644
--- a/content/renderer/pepper/ppb_audio_impl.cc
+++ b/content/renderer/pepper/ppb_audio_impl.cc
@@ -30,9 +30,7 @@ namespace content {
// PPB_Audio_Impl --------------------------------------------------------------
PPB_Audio_Impl::PPB_Audio_Impl(PP_Instance instance)
- : Resource(ppapi::OBJECT_IS_IMPL, instance),
- audio_(NULL) {
-}
+ : Resource(ppapi::OBJECT_IS_IMPL, instance), audio_(NULL) {}
PPB_Audio_Impl::~PPB_Audio_Impl() {
// Calling ShutDown() makes sure StreamCreated cannot be called anymore and
@@ -46,9 +44,7 @@ PPB_Audio_Impl::~PPB_Audio_Impl() {
}
}
-PPB_Audio_API* PPB_Audio_Impl::AsPPB_Audio_API() {
- return this;
-}
+PPB_Audio_API* PPB_Audio_Impl::AsPPB_Audio_API() { return this; }
PP_Resource PPB_Audio_Impl::GetCurrentConfig() {
// AddRef on behalf of caller, while keeping a ref for ourselves.
@@ -76,9 +72,8 @@ PP_Bool PPB_Audio_Impl::StopPlayback() {
return PP_TRUE;
}
-int32_t PPB_Audio_Impl::Open(
- PP_Resource config,
- scoped_refptr<TrackedCallback> create_callback) {
+int32_t PPB_Audio_Impl::Open(PP_Resource config,
+ scoped_refptr<TrackedCallback> create_callback) {
// Validate the config and keep a reference to it.
EnterResourceNoLock<PPB_AudioConfig_API> enter(config, true);
if (enter.failed())
@@ -113,8 +108,7 @@ int32_t PPB_Audio_Impl::GetSyncSocket(int* sync_socket) {
return GetSyncSocketImpl(sync_socket);
}
-int32_t PPB_Audio_Impl::GetSharedMemory(int* shm_handle,
- uint32_t* shm_size) {
+int32_t PPB_Audio_Impl::GetSharedMemory(int* shm_handle, uint32_t* shm_size) {
return GetSharedMemoryImpl(shm_handle, shm_size);
}
@@ -123,8 +117,11 @@ void PPB_Audio_Impl::OnSetStreamInfo(
size_t shared_memory_size,
base::SyncSocket::Handle socket_handle) {
EnterResourceNoLock<PPB_AudioConfig_API> enter(config_, true);
- SetStreamInfo(pp_instance(), shared_memory_handle, shared_memory_size,
- socket_handle, enter.object()->GetSampleRate(),
+ SetStreamInfo(pp_instance(),
+ shared_memory_handle,
+ shared_memory_size,
+ socket_handle,
+ enter.object()->GetSampleRate(),
enter.object()->GetSampleFrameCount());
}
« no previous file with comments | « content/renderer/pepper/ppb_audio_impl.h ('k') | content/renderer/pepper/ppb_broker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698