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

Unified Diff: ppapi/shared_impl/array_writer.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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 | « ppapi/shared_impl/array_writer.h ('k') | ppapi/shared_impl/callback_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/array_writer.cc
diff --git a/ppapi/shared_impl/array_writer.cc b/ppapi/shared_impl/array_writer.cc
index 26ee1bd669b00d38f36ee4cb3c5cbed61edf88e0..fe87e070a8d8da020a7a7ebdbd3f97813686e1f6 100644
--- a/ppapi/shared_impl/array_writer.cc
+++ b/ppapi/shared_impl/array_writer.cc
@@ -14,16 +14,12 @@
namespace ppapi {
-ArrayWriter::ArrayWriter() {
- Reset();
-}
+ArrayWriter::ArrayWriter() { Reset(); }
ArrayWriter::ArrayWriter(const PP_ArrayOutput& output)
- : pp_array_output_(output) {
-}
+ : pp_array_output_(output) {}
-ArrayWriter::~ArrayWriter() {
-}
+ArrayWriter::~ArrayWriter() {}
void ArrayWriter::Reset() {
pp_array_output_.GetDataBuffer = NULL;
@@ -31,12 +27,12 @@ void ArrayWriter::Reset() {
}
bool ArrayWriter::StoreResourceVector(
- const std::vector< scoped_refptr<Resource> >& input) {
+ const std::vector<scoped_refptr<Resource> >& input) {
// Always call the alloc function, even on 0 array size.
- void* dest = pp_array_output_.GetDataBuffer(
- pp_array_output_.user_data,
- static_cast<uint32_t>(input.size()),
- sizeof(PP_Resource));
+ void* dest =
+ pp_array_output_.GetDataBuffer(pp_array_output_.user_data,
+ static_cast<uint32_t>(input.size()),
+ sizeof(PP_Resource));
// Regardless of success, we clear the output to prevent future calls on
// this same output object.
@@ -56,10 +52,10 @@ bool ArrayWriter::StoreResourceVector(
bool ArrayWriter::StoreResourceVector(const std::vector<PP_Resource>& input) {
// Always call the alloc function, even on 0 array size.
- void* dest = pp_array_output_.GetDataBuffer(
- pp_array_output_.user_data,
- static_cast<uint32_t>(input.size()),
- sizeof(PP_Resource));
+ void* dest =
+ pp_array_output_.GetDataBuffer(pp_array_output_.user_data,
+ static_cast<uint32_t>(input.size()),
+ sizeof(PP_Resource));
// Regardless of success, we clear the output to prevent future calls on
// this same output object.
@@ -79,12 +75,12 @@ bool ArrayWriter::StoreResourceVector(const std::vector<PP_Resource>& input) {
}
bool ArrayWriter::StoreVarVector(
- const std::vector< scoped_refptr<Var> >& input) {
+ const std::vector<scoped_refptr<Var> >& input) {
// Always call the alloc function, even on 0 array size.
- void* dest = pp_array_output_.GetDataBuffer(
- pp_array_output_.user_data,
- static_cast<uint32_t>(input.size()),
- sizeof(PP_Var));
+ void* dest =
+ pp_array_output_.GetDataBuffer(pp_array_output_.user_data,
+ static_cast<uint32_t>(input.size()),
+ sizeof(PP_Var));
// Regardless of success, we clear the output to prevent future calls on
// this same output object.
@@ -104,10 +100,10 @@ bool ArrayWriter::StoreVarVector(
bool ArrayWriter::StoreVarVector(const std::vector<PP_Var>& input) {
// Always call the alloc function, even on 0 array size.
- void* dest = pp_array_output_.GetDataBuffer(
- pp_array_output_.user_data,
- static_cast<uint32_t>(input.size()),
- sizeof(PP_Var));
+ void* dest =
+ pp_array_output_.GetDataBuffer(pp_array_output_.user_data,
+ static_cast<uint32_t>(input.size()),
+ sizeof(PP_Var));
// Regardless of success, we clear the output to prevent future calls on
// this same output object.
« no previous file with comments | « ppapi/shared_impl/array_writer.h ('k') | ppapi/shared_impl/callback_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698