implemented core UI caching feedback functionality
Not a perfect implementation yet, but this shows UI feedback on what frames are cached and which ones aren't.
This commit is contained in:
@@ -20,6 +20,7 @@ public:
|
||||
|
||||
bool OverlapsWith(const TimeRange& a) const;
|
||||
TimeRange CombineWith(const TimeRange& a) const;
|
||||
bool Contains(const TimeRange& a) const;
|
||||
|
||||
static bool Overlap(const TimeRange& a, const TimeRange& b);
|
||||
static TimeRange Combine(const TimeRange &a, const TimeRange &b);
|
||||
@@ -34,4 +35,14 @@ private:
|
||||
|
||||
uint qHash(const TimeRange& r, uint seed);
|
||||
|
||||
class TimeRangeList : public QList<TimeRange> {
|
||||
public:
|
||||
TimeRangeList() = default;
|
||||
|
||||
void InsertTimeRange(const TimeRange& range);
|
||||
|
||||
void RemoveTimeRange(const TimeRange& range);
|
||||
|
||||
};
|
||||
|
||||
#endif // TIMERANGE_H
|
||||
|
||||
Reference in New Issue
Block a user