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

Unified Diff: content/renderer/pepper/ppb_image_data_impl.h

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_graphics_3d_impl.cc ('k') | content/renderer/pepper/ppb_image_data_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_image_data_impl.h
diff --git a/content/renderer/pepper/ppb_image_data_impl.h b/content/renderer/pepper/ppb_image_data_impl.h
index 49c399b1d3961852548ad2502aa1984053b00536..3ec7986ceb525a714e690c20b9b91bc9b790509a 100644
--- a/content/renderer/pepper/ppb_image_data_impl.h
+++ b/content/renderer/pepper/ppb_image_data_impl.h
@@ -36,8 +36,11 @@ class CONTENT_EXPORT PPB_ImageData_Impl
class Backend {
public:
virtual ~Backend() {};
- virtual bool Init(PPB_ImageData_Impl* impl, PP_ImageDataFormat format,
- int width, int height, bool init_to_zero) = 0;
+ virtual bool Init(PPB_ImageData_Impl* impl,
+ PP_ImageDataFormat format,
+ int width,
+ int height,
+ bool init_to_zero) = 0;
virtual bool IsMapped() const = 0;
virtual TransportDIB* GetTransportDIB() const = 0;
virtual void* Map() = 0;
@@ -56,11 +59,11 @@ class CONTENT_EXPORT PPB_ImageData_Impl
// Constructor used for unittests. The ImageData is always allocated locally.
struct ForTest {};
- PPB_ImageData_Impl(PP_Instance instance,
- ForTest);
+ PPB_ImageData_Impl(PP_Instance instance, ForTest);
bool Init(PP_ImageDataFormat format,
- int width, int height,
+ int width,
+ int height,
bool init_to_zero);
static PP_Resource Create(PP_Instance pp_instance,
@@ -113,8 +116,11 @@ class ImageDataPlatformBackend : public PPB_ImageData_Impl::Backend {
virtual ~ImageDataPlatformBackend();
// PPB_ImageData_Impl::Backend implementation.
- virtual bool Init(PPB_ImageData_Impl* impl, PP_ImageDataFormat format,
- int width, int height, bool init_to_zero) OVERRIDE;
+ virtual bool Init(PPB_ImageData_Impl* impl,
+ PP_ImageDataFormat format,
+ int width,
+ int height,
+ bool init_to_zero) OVERRIDE;
virtual bool IsMapped() const OVERRIDE;
virtual TransportDIB* GetTransportDIB() const OVERRIDE;
virtual void* Map() OVERRIDE;
@@ -145,8 +151,11 @@ class ImageDataSimpleBackend : public PPB_ImageData_Impl::Backend {
virtual ~ImageDataSimpleBackend();
// PPB_ImageData_Impl::Backend implementation.
- virtual bool Init(PPB_ImageData_Impl* impl, PP_ImageDataFormat format,
- int width, int height, bool init_to_zero) OVERRIDE;
+ virtual bool Init(PPB_ImageData_Impl* impl,
+ PP_ImageDataFormat format,
+ int width,
+ int height,
+ bool init_to_zero) OVERRIDE;
virtual bool IsMapped() const OVERRIDE;
virtual TransportDIB* GetTransportDIB() const OVERRIDE;
virtual void* Map() OVERRIDE;
@@ -179,7 +188,7 @@ class ImageDataSimpleBackend : public PPB_ImageData_Impl::Backend {
class ImageDataAutoMapper {
public:
explicit ImageDataAutoMapper(PPB_ImageData_Impl* image_data)
- : image_data_(image_data) {
+ : image_data_(image_data) {
if (image_data_->IsMapped()) {
is_valid_ = true;
needs_unmap_ = false;
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/pepper/ppb_image_data_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698