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

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

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: content/renderer/pepper/host_array_buffer_var.cc
diff --git a/content/renderer/pepper/host_array_buffer_var.cc b/content/renderer/pepper/host_array_buffer_var.cc
index d8d4cec8bf991e235715aae9db525fe39454e487..ad8e97b46bf45c5de3858c62d6ad31afe9fddaa2 100644
--- a/content/renderer/pepper/host_array_buffer_var.cc
+++ b/content/renderer/pepper/host_array_buffer_var.cc
@@ -24,13 +24,10 @@ namespace content {
HostArrayBufferVar::HostArrayBufferVar(uint32 size_in_bytes)
: buffer_(WebArrayBuffer::create(size_in_bytes, 1 /* element_size */)),
- valid_(true) {
-}
+ valid_(true) {}
HostArrayBufferVar::HostArrayBufferVar(const WebArrayBuffer& buffer)
- : buffer_(buffer),
- valid_(true) {
-}
+ : buffer_(buffer), valid_(true) {}
HostArrayBufferVar::HostArrayBufferVar(uint32 size_in_bytes,
base::SharedMemoryHandle handle)
@@ -43,8 +40,7 @@ HostArrayBufferVar::HostArrayBufferVar(uint32 size_in_bytes,
}
}
-HostArrayBufferVar::~HostArrayBufferVar() {
-}
+HostArrayBufferVar::~HostArrayBufferVar() {}
void* HostArrayBufferVar::Map() {
if (!valid_)
@@ -56,17 +52,16 @@ void HostArrayBufferVar::Unmap() {
// We do not used shared memory on the host side. Nothing to do.
}
-uint32 HostArrayBufferVar::ByteLength() {
- return buffer_.byteLength();
-}
+uint32 HostArrayBufferVar::ByteLength() { return buffer_.byteLength(); }
bool HostArrayBufferVar::CopyToNewShmem(
PP_Instance instance,
int* host_shm_handle_id,
base::SharedMemoryHandle* plugin_shm_handle) {
scoped_ptr<base::SharedMemory> shm(
- RenderThread::Get()->HostAllocateSharedMemoryBuffer(ByteLength()).
- release());
+ RenderThread::Get()
+ ->HostAllocateSharedMemoryBuffer(ByteLength())
+ .release());
bbudge 2014/04/07 17:02:17 I wonder why this didn't go on the previous line?
if (!shm)
return false;
@@ -79,7 +74,7 @@ bool HostArrayBufferVar::CopyToNewShmem(
HostGlobals* hg = HostGlobals::Get();
PluginModule* pm = hg->GetModule(hg->GetModuleForInstance(instance));
base::ProcessId p = pm->GetPeerProcessId();
- if (p == base::kNullProcessId) {
+ if (p == base::kNullProcessId) {
// In-process, clone for ourselves.
p = base::GetCurrentProcId();
}

Powered by Google App Engine
This is Rietveld 408576698