Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / renderer / pepper / ppb_image_data_impl.h
index 49c399b..3ec7986 100644 (file)
@@ -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;