We have nsDependentCString to avoid needless memory traffic here. We need an explicit cast, however, because we don't have a ParamTraits specialization for nsDependentCString, only for nsCString, and template specialization doesn't take derived classes into account.
Created attachment 8738575 [details] [diff] [review] don't needlessly construct nsAutoCString temporaries when serializing GMPVideoCodec
Attachment #8738575 - Flags: review?(cpearce)
Attachment #8738575 - Flags: review?(cpearce) → review+
Component: Audio/Video → Audio/Video: GMP
Priority: -- → P2
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox48: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.