Rework the JitCompare window to hold a list of blocks, and allow some filtering and browsing

This commit is contained in:
Henrik Rydgård committed 2024-06-05 18:16:33 +02:00
1 parent c538ce8bf0
commit 3bb74ea9ad
9 files changed
+258 -123

No files matched your search

+10
View File
@@ -67,6 +67,16 @@ bool ViewGroup::ContainsSubview(const View *view) const {
return false;
}
int ViewGroup::IndexOfSubview(const View *view) const {
int index = 0;
for (const View *subview : views_) {
if (subview == view)
return index;
index++;
}
return -1;
}
void ViewGroup::Clear() {
for (View *view : views_) {
delete view;