Bug 1188752 - Addendum: Make PersistentBufferProviderBasic constructor explicit. r=bustage on a CLOSED TREE a=ritu
authorBas Schouten <bschouten@mozilla.com>
Wed, 05 Aug 2015 19:37:23 +0000
changeset 291465 6662dc9666803dc09cbb9ba9e1ccc9c7b06ceb6d
parent 291464 9a2b2c73fe26368e9ed44c6ea6799206e6a64ec8
child 291466 9fe71b0975bb1d9b01ee037ebb87c7e45f322074
push id5246
push usermozilla@noorenberghe.ca
push dateWed, 09 Sep 2015 21:17:14 +0000
reviewersbustage, ritu
bugs1188752
milestone41.0
Bug 1188752 - Addendum: Make PersistentBufferProviderBasic constructor explicit. r=bustage on a CLOSED TREE a=ritu
gfx/layers/PersistentBufferProvider.h
--- a/gfx/layers/PersistentBufferProvider.h
+++ b/gfx/layers/PersistentBufferProvider.h
@@ -54,17 +54,17 @@ protected:
 
 class PersistentBufferProviderBasic : public PersistentBufferProvider
 {
 public:
   MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(PersistentBufferProviderBasic)
 
   PersistentBufferProviderBasic(LayerManager* aManager, gfx::IntSize aSize,
                                 gfx::SurfaceFormat aFormat, gfx::BackendType aBackend);
-  PersistentBufferProviderBasic(gfx::DrawTarget* aTarget) : mDrawTarget(aTarget) {}
+  explicit PersistentBufferProviderBasic(gfx::DrawTarget* aTarget) : mDrawTarget(aTarget) {}
 
   bool IsValid() { return !!mDrawTarget; }
   virtual LayersBackend GetType() { return LayersBackend::LAYERS_BASIC; }
   gfx::DrawTarget* GetDT(const gfx::IntRect& aPersistedRect) { return mDrawTarget; }
   bool ReturnAndUseDT(gfx::DrawTarget* aDT) { MOZ_ASSERT(mDrawTarget == aDT); return true; }
   virtual TemporaryRef<gfx::SourceSurface> GetSnapshot() { return mDrawTarget->Snapshot(); }
 private:
   RefPtr<gfx::DrawTarget> mDrawTarget;