Bug 1319456: Hold DrawEventRecorders in the correct structure in PathRecording. r=bas a=gchang
authorBob Owen <bobowencode@gmail.com>
Fri, 09 Dec 2016 02:25:50 +0000
changeset 352901 11e76531aa74395dbb0f6f596909ad57eff416bc
parent 352900 f597f21b42f5fe20bb9b37758250188d59a5c65e
child 352902 b39873f48504a01f46ca0f88bb045652d0403427
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbas, gchang
bugs1319456
milestone52.0a2
Bug 1319456: Hold DrawEventRecorders in the correct structure in PathRecording. r=bas a=gchang MozReview-Commit-ID: 1bJxJnKXzVc
gfx/2d/PathRecording.h
--- a/gfx/2d/PathRecording.h
+++ b/gfx/2d/PathRecording.h
@@ -128,15 +128,15 @@ private:
   friend class DrawTargetRecording;
   friend class RecordedPathCreation;
 
   RefPtr<Path> mPath;
   std::vector<PathOp> mPathOps;
   FillRule mFillRule;
 
   // Event recorders that have this path in their event stream.
-  std::vector<DrawEventRecorderPrivate*> mStoredRecorders;
+  std::vector<RefPtr<DrawEventRecorderPrivate>> mStoredRecorders;
 };
 
 } // namespace gfx
 } // namespace mozilla
 
 #endif /* MOZILLA_GFX_PATHRECORDING_H_ */