Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/ReorderQueue.h
Line
Count
Source (jump to first uncovered line)
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
// Queue for ordering decoded video frames by presentation time.
6
// Decoders often return frames out of order, which we need to
7
// buffer so we can forward them in correct presentation order.
8
9
#ifndef mozilla_ReorderQueue_h
10
#define mozilla_ReorderQueue_h
11
12
#include <MediaData.h>
13
#include <nsTPriorityQueue.h>
14
15
namespace mozilla {
16
17
struct ReorderQueueComparator
18
{
19
  bool LessThan(MediaData* const& a, MediaData* const& b) const
20
0
  {
21
0
    return a->mTime < b->mTime;
22
0
  }
23
};
24
25
typedef nsTPriorityQueue<RefPtr<MediaData>, ReorderQueueComparator> ReorderQueue;
26
27
} // namespace mozilla
28
29
#endif // mozilla_ReorderQueue_h