summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/Profile.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-04 11:05:34 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-04 11:25:45 +0100
commit1208fc7d370ca3bcefe2fd60853e68366eb8ad50 (patch)
tree0e9e831a086806bb19490745ad6708eeaaa89831 /Userland/DevTools/Profiler/Profile.h
parented9ab38b3b074f188ac739c132335dac2f0f6cb8 (diff)
downloadserenity-1208fc7d370ca3bcefe2fd60853e68366eb8ad50.zip
AK: Simplify Bitmap and implement in terms of BitmapView
Add Bitmap::view() and forward most of the calls to BitmapView since the code was identical. Bitmap is now primarily concerned with its dynamically allocated backing store and BitmapView deals with the rest.
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.h')
-rw-r--r--Userland/DevTools/Profiler/Profile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/Profile.h b/Userland/DevTools/Profiler/Profile.h
index 8a76073487..1f223f2395 100644
--- a/Userland/DevTools/Profiler/Profile.h
+++ b/Userland/DevTools/Profiler/Profile.h
@@ -98,7 +98,7 @@ public:
void will_track_seen_events(size_t profile_event_count)
{
if (m_seen_events.size() != profile_event_count)
- m_seen_events = Bitmap::create(profile_event_count, false);
+ m_seen_events = Bitmap { profile_event_count, false };
}
bool has_seen_event(size_t event_index) const { return m_seen_events.get(event_index); }
void did_see_event(size_t event_index) { m_seen_events.set(event_index, true); }