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

Unified Diff: content/renderer/pepper/ppb_buffer_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_broker_impl.cc ('k') | content/renderer/pepper/ppb_flash_message_loop_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_buffer_impl.cc
diff --git a/content/renderer/pepper/ppb_buffer_impl.cc b/content/renderer/pepper/ppb_buffer_impl.cc
index 4b806b94421f068f07d86b294745fd446c544252..453e71687194b387b3e8845c0479b2344597def5 100644
--- a/content/renderer/pepper/ppb_buffer_impl.cc
+++ b/content/renderer/pepper/ppb_buffer_impl.cc
@@ -20,13 +20,9 @@ using ppapi::thunk::PPB_Buffer_API;
namespace content {
PPB_Buffer_Impl::PPB_Buffer_Impl(PP_Instance instance)
- : Resource(ppapi::OBJECT_IS_IMPL, instance),
- size_(0),
- map_count_(0) {
-}
+ : Resource(ppapi::OBJECT_IS_IMPL, instance), size_(0), map_count_(0) {}
-PPB_Buffer_Impl::~PPB_Buffer_Impl() {
-}
+PPB_Buffer_Impl::~PPB_Buffer_Impl() {}
// static
PP_Resource PPB_Buffer_Impl::Create(PP_Instance instance, uint32_t size) {
@@ -46,13 +42,9 @@ scoped_refptr<PPB_Buffer_Impl> PPB_Buffer_Impl::CreateResource(
return buffer;
}
-PPB_Buffer_Impl* PPB_Buffer_Impl::AsPPB_Buffer_Impl() {
- return this;
-}
+PPB_Buffer_Impl* PPB_Buffer_Impl::AsPPB_Buffer_Impl() { return this; }
-PPB_Buffer_API* PPB_Buffer_Impl::AsPPB_Buffer_API() {
- return this;
-}
+PPB_Buffer_API* PPB_Buffer_Impl::AsPPB_Buffer_API() { return this; }
bool PPB_Buffer_Impl::Init(uint32_t size) {
if (size == 0)
@@ -89,8 +81,7 @@ int32_t PPB_Buffer_Impl::GetSharedMemory(int* shm_handle) {
#if defined(OS_POSIX)
*shm_handle = shared_memory_->handle().fd;
#elif defined(OS_WIN)
- *shm_handle = reinterpret_cast<int>(
- shared_memory_->handle());
+ *shm_handle = reinterpret_cast<int>(shared_memory_->handle());
#else
#error "Platform not supported."
#endif
« no previous file with comments | « content/renderer/pepper/ppb_broker_impl.cc ('k') | content/renderer/pepper/ppb_flash_message_loop_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698