Bug 1207183 - micro-optimize removing work items from DecodePool's queues; r=seth

We're transferring ownership out of the queue; there's no reason for us
to pay for an AddRef/Release pair here.
This commit is contained in:
Nathan Froyd 2015-09-22 19:15:12 -04:00
parent 46b37645c7
commit 4a1659c5a9

View File

@ -246,7 +246,7 @@ private:
{
Work work;
work.mType = Work::Type::DECODE;
work.mDecoder = aQueue.LastElement();
work.mDecoder = aQueue.LastElement().forget();
aQueue.RemoveElementAt(aQueue.Length() - 1);
return work;