ui: draw clip cache on timeline

This commit is contained in:
itsmattkc
2022-06-03 17:16:29 -07:00
parent d4d2faf763
commit 7a8794fe88
7 changed files with 71 additions and 41 deletions
@@ -603,6 +603,13 @@ void TimelineView::DrawBlock(QPainter *painter, bool foreground, Block *block, q
}
}
}
if (const FrameHashCache *cache = clip->connected_video_cache()) {
if (cache->HasValidatedRanges()) {
QRect cache_rect = r.adjusted(0, r.height() - PlaybackCache::GetCacheIndicatorHeight(), 0, 0).toRect();
cache->Draw(painter, clip->media_in(), GetScale(), cache_rect);
}
}
}
// For transitions, show lines representing a transition