Bug 1313497 - AppendBufferTask can take SourceBufferAttributes by const& - r?jya draft
authorGerald Squelart <gsquelart@mozilla.com>
Sun, 13 Nov 2016 16:39:47 +1100
changeset 442669 dc38fbdaa034786d19037c8590dd9e2180a421bf
parent 442668 ea4b2b80221557fcae8f46f89f2f38e891ec42a9
child 442670 8ba2a9ec2f2548365e49bcf5d699ea032e72da3e
push id36776
push usergsquelart@mozilla.com
push dateWed, 23 Nov 2016 01:03:12 +0000
reviewersjya
bugs1313497
milestone53.0a1
Bug 1313497 - AppendBufferTask can take SourceBufferAttributes by const& - r?jya A small optimization found while working on the previous patch. MozReview-Commit-ID: 4w2LI5mqUvS
dom/media/mediasource/SourceBufferTask.h
--- a/dom/media/mediasource/SourceBufferTask.h
+++ b/dom/media/mediasource/SourceBufferTask.h
@@ -43,17 +43,17 @@ public:
 
 protected:
   virtual ~SourceBufferTask() {}
 };
 
 class AppendBufferTask : public SourceBufferTask {
 public:
   AppendBufferTask(MediaByteBuffer* aData,
-                   SourceBufferAttributes aAttributes)
+                   const SourceBufferAttributes& aAttributes)
   : mBuffer(aData)
   , mAttributes(aAttributes)
   {}
 
   static const Type sType = Type::AppendBuffer;
   Type GetType() const override { return Type::AppendBuffer; }
 
   RefPtr<MediaByteBuffer> mBuffer;
@@ -103,9 +103,9 @@ public:
 class DetachTask : public SourceBufferTask {
 public:
   static const Type sType = Type::Detach;
   Type GetType() const override { return Type::Detach; }
 };
 
 } // end mozilla namespace
 
-#endif
\ No newline at end of file
+#endif