Bug 785001 - Add default constructor to PlanarYCbCrImage::Data. r=roc
authorKan-Ru Chen (陳侃如) <kanru@kanru.info>
Sun, 26 Aug 2012 20:14:20 -0300
changeset 105545 0fdd937d7a81faad224139abdfa1d1e5eb4d4558
parent 105544 d178a49c979c576e8b47e0d8517f38ce91975410
child 105546 1c013be9911e51315e0f55f39306fb6e2fea5134
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersroc
bugs785001
milestone17.0a1
Bug 785001 - Add default constructor to PlanarYCbCrImage::Data. r=roc
gfx/layers/ImageContainer.h
--- a/gfx/layers/ImageContainer.h
+++ b/gfx/layers/ImageContainer.h
@@ -647,16 +647,23 @@ public:
     gfxIntSize mPicSize;
     StereoMode mStereoMode;
 
     nsIntRect GetPictureRect() const {
       return nsIntRect(mPicX, mPicY,
                        mPicSize.width,
                        mPicSize.height);
     }
+
+    Data()
+      : mYChannel(nullptr), mYStride(0), mYSize(0, 0), mYSkip(0)
+      , mCbChannel(nullptr), mCrChannel(nullptr)
+      , mCbCrStride(0), mCbCrSize(0, 0) , mCbSkip(0), mCrSkip(0)
+      , mPicX(0), mPicY(0), mPicSize(0, 0), mStereoMode(STEREO_MODE_MONO)
+    {}
   };
 
   enum {
     MAX_DIMENSION = 16384
   };
 
   virtual ~PlanarYCbCrImage();