Closed Bug 1339755 Opened 8 years ago Closed 8 years ago

Move GMPCDMProxy::DecryptJob out of GMPCDMProxy

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

Details

Attachments

(2 files)

This means it can be reused in other CDMProxies, specifically, my work to make a new Chromium CDMProxy in bug Bug 1315850.
Comment on attachment 8837502 [details] Bug 1339755 - Move GMPCDMProxy::DecryptJob out of GMPCDMProxy. https://reviewboard.mozilla.org/r/112668/#review114098
Attachment #8837502 - Flags: review?(jwwang) → review+
Comment on attachment 8837503 [details] Bug 1339755 - Move DecryptJob id calculation into its constructor. https://reviewboard.mozilla.org/r/112670/#review114102 ::: dom/media/gmp/DecryptJob.cpp:13 (Diff revision 1) > namespace mozilla { > > +uint32_t sDecryptJobInstanceCount = 0; > + > +DecryptJob::DecryptJob(MediaRawData* aSample) > + : mId(++sDecryptJobInstanceCount ) Is there a data race if DecryptJob is created on different theads concurrently?
Attachment #8837503 - Flags: review?(jwwang) → review+
Comment on attachment 8837503 [details] Bug 1339755 - Move DecryptJob id calculation into its constructor. https://reviewboard.mozilla.org/r/112670/#review114102 > Is there a data race if DecryptJob is created on different theads concurrently? Under current usage patterns, this is always accessed from the same thread. I can make it atomic to make it safe. I'm expecting to remove the ID soon.
Pushed by cpearce@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/85641936e471 Move GMPCDMProxy::DecryptJob out of GMPCDMProxy. r=jwwang https://hg.mozilla.org/integration/autoland/rev/f3629503d405 Move DecryptJob id calculation into its constructor. r=jwwang
Pushed by cpearce@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/53680343b6a2 Move GMPCDMProxy::DecryptJob out of GMPCDMProxy. r=jwwang https://hg.mozilla.org/integration/autoland/rev/18975ff8fe82 Move DecryptJob id calculation into its constructor. r=jwwang
Flags: needinfo?(cpearce)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: