DescriptionUse RefCountedThreadSafe in GPU IDC
Currently GPU Image Decode Controller uses a base::RefCounted object.
This object isn't thread safe, which is fine, as GPUIDC holds a lock
during access. However, the RefCounted object can't detect that the
usage is safe and raises a DCHECK.
This change just makes the object a RefCountedThreadSafe. Ref/Unref
should be rare enough that this won't have a big impact. And is easier
than working around the DCHECK in another way.
R=vmpstr@chromium.org
BUG=714245
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2836703003
Cr-Commit-Position: refs/heads/master@{#467793}
Committed: https://chromium.googlesource.com/chromium/src/+/90567cc4853a3df94213a410c76ee9f981b75ecc
Patch Set 1 #
Messages
Total messages: 16 (10 generated)
|