framehashcache: refactored to remove hashes

This commit is contained in:
itsmattkc
2022-05-09 19:04:59 -07:00
parent ce495e39bd
commit 2cf0b24e0f
3 changed files with 80 additions and 225 deletions
+1 -7
View File
@@ -96,13 +96,7 @@ void PlaybackCache::ShiftEvent(const rational &, const rational &)
Project *PlaybackCache::GetProject() const
{
// NOTE: A lot of assumptions in this behavior
ViewerOutput* viewer = static_cast<ViewerOutput*>(parent());
if (!viewer) {
return nullptr;
}
return viewer->project();
return Project::GetProjectFromObject(this);
}
TimeRangeList PlaybackCache::GetInvalidatedRanges(TimeRange intersecting)