| 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;
|
|
|