Bug 1404627: Atomically refcount Path objects for use with OMTP. r=mattwoodrow draft
authorBas Schouten <bschouten@mozilla.com>
Mon, 02 Oct 2017 00:18:29 +0200
changeset 673155 7968784005e386b3d6faa9e0e312c7e25123f2ee
parent 673152 a483b64bfc05b86d55ecf5208eacccca0373e518
child 734019 0067a70a3cebfb803d71b20d61318a623cf1e4f9
push id82480
push userbschouten@mozilla.com
push dateSun, 01 Oct 2017 22:18:52 +0000
reviewersmattwoodrow
bugs1404627
milestone58.0a1
Bug 1404627: Atomically refcount Path objects for use with OMTP. r=mattwoodrow MozReview-Commit-ID: QAcF6onoJw
gfx/2d/2D.h
--- a/gfx/2d/2D.h
+++ b/gfx/2d/2D.h
@@ -612,17 +612,17 @@ public:
 };
 
 class PathBuilder;
 class FlattenedPath;
 
 /** The path class is used to create (sets of) figures of any shape that can be
  * filled or stroked to a DrawTarget
  */
-class Path : public RefCounted<Path>
+class Path : public external::AtomicRefCounted<Path>
 {
 public:
   MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(Path)
   virtual ~Path();
 
   virtual BackendType GetBackendType() const = 0;
 
   /** This returns a PathBuilder object that contains a copy of the contents of