1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
Commit Graph

24 Commits

Author SHA1 Message Date
Bartosz Taudul 96d60ce626 Change GetNextFrameHeight() to GetHeight().
The GetNextFrameHeight() name correctness was very situational. It was
often used in the meaning of "get current frame height".
2023-03-25 15:12:33 +01:00
Bartosz Taudul 7ec68f8b52 Push item visibility to Preprocess(). 2023-03-25 15:10:58 +01:00
Bartosz Taudul 1e1833edc2 Parallelize timeline item preprocessing. 2023-03-19 18:54:32 +01:00
Bartosz Taudul 0ecdcbc13c Move TimelineContext struct definition to a separate header. 2023-03-18 17:03:23 +01:00
Bartosz Taudul 5b3427395e Add view start and end to TimelineContext. 2023-03-18 17:02:23 +01:00
Bartosz Taudul 0a32929b0b Move hover flag to TimelineContext. 2023-03-18 16:07:56 +01:00
Bartosz Taudul c75bec9122 Cosmetics. 2023-03-18 15:59:52 +01:00
Bartosz Taudul 9538fa99ca Pass yMin, yMax through TimelineContext. 2023-03-15 23:56:57 +01:00
Bartosz Taudul c81ef177ab Push timline context to Draw and DrawContents functions. 2023-03-14 02:25:15 +01:00
Bartosz Taudul b6b6e1edcf Store common constants in context variable. 2023-03-14 02:25:14 +01:00
Bartosz Taudul 66d8dab925 Preprocess timeline items in controller. 2023-03-14 02:02:50 +01:00
Tomaž Vöröš 645d53f254 More correct shouldUpdateCenterItem. 2023-01-31 20:35:17 +01:00
Tomaž Vöröš bca8f28f43 Centering around the mouse pointer. 2023-01-29 19:20:26 +01:00
Tomaž Vöröš 2df56e9941 Fix off-by-one-frame in timeline item height. 2023-01-27 20:00:05 +01:00
Tomaž Vöröš 7b9b810421 Refactor the use of offset in TimelineItem::Draw() and TimelineController::End(). 2023-01-27 20:00:05 +01:00
Tomaž Vöröš 1969ef0f43 Reintroduce the vertical scroll-bar reset logic in TimelineController. 2022-12-19 19:05:18 +01:00
Tomaž Vöröš e4ab6cdaf1 Fix TimelineController height calculation. 2022-12-18 20:45:42 +01:00
Bartosz Taudul 53632ccb5b Cleanup. 2022-09-04 14:56:12 +02:00
Bartosz Taudul 44efb15df1 Remove VisData.
Its functionality is now incorporated into TimelineItem. For purposes of
maintaining visibility of frame sets and locks a much simpler ptr -> bool map
is now used.
2022-09-04 14:46:51 +02:00
Bartosz Taudul 119152aac1 Worker must be mutable.
This is to allow use of various accessors that cache results, etc.
2022-09-03 18:34:11 +02:00
Bartosz Taudul 9355a14657 New TimelineController begin/end logic. 2022-09-03 17:51:31 +02:00
Bartosz Taudul 449dff0eca Store View and Worker in TimelineController. 2022-09-03 17:51:30 +02:00
Bartosz Taudul 655d8a01ea Move vis data to timeline controller. 2022-08-20 17:02:29 +02:00
Bartosz Taudul c01ad38d46 Start extracting timeline height control logic. 2022-08-15 13:29:45 +02:00