Bug 1395394: Make refcounting of GradientStops threadsafe for the sake of OMTP. r=mattwoodrow
MozReview-Commit-ID: XGDrVoIp8K
--- 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; }