Bug 1395394: Make refcounting of GradientStops threadsafe for the sake of OMTP. r=mattwoodrow draft
authorBas Schouten <bschouten@mozilla.com>
Mon, 02 Oct 2017 00:14:26 +0200
changeset 673154 94ea9fdd9db379b1b3df4a237460eb0a633262c2
parent 673153 2b8eaabd995f685f11a1d290151897023a4de55e
child 734018 33be31a3067ad92bb728f52a74707f18ff090ff3
push id82479
push userbschouten@mozilla.com
push dateSun, 01 Oct 2017 22:16:02 +0000
reviewersmattwoodrow
bugs1395394
milestone58.0a1
Bug 1395394: Make refcounting of GradientStops threadsafe for the sake of OMTP. r=mattwoodrow MozReview-Commit-ID: XGDrVoIp8K
gfx/2d/2D.h
--- a/gfx/2d/2D.h
+++ b/gfx/2d/2D.h
@@ -205,17 +205,17 @@ struct DrawSurfaceOptions {
 
 };
 
 /**
  * This class is used to store gradient stops, it can only be used with a
  * matching DrawTarget. Not adhering to this condition will make a draw call
  * fail.
  */
-class GradientStops : public RefCounted<GradientStops>
+class GradientStops : public external::AtomicRefCounted<GradientStops>
 {
 public:
   MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(GradientStops)
   virtual ~GradientStops() {}
 
   virtual BackendType GetBackendType() const = 0;
   virtual bool IsValid() const { return true; }