| 286 | } |
| 287 | |
| 288 | struct ThreadSortPred |
| 289 | { |
| 290 | dmHashTable64<int>* m_SortOrder; |
| 291 | ThreadSortPred(dmHashTable64<int>* sort_order) : m_SortOrder(sort_order) {} |
| 292 | |
| 293 | bool operator()(dmProfileRender::ProfilerThread* a, dmProfileRender::ProfilerThread* b) const |
| 294 | { |
| 295 | int* p_order_a = m_SortOrder->Get(a->m_NameHash); |
| 296 | int* p_order_b = m_SortOrder->Get(b->m_NameHash); |
| 297 | int order_a = p_order_a ? *p_order_a : -1; |
| 298 | int order_b = p_order_b ? *p_order_b : -1; |
| 299 | return order_a < order_b; |
| 300 | } |
| 301 | }; |
| 302 | |
| 303 | |
| 304 | void RenderProfiler(HProfile profile, dmGraphics::HContext graphics_context, dmRender::HRenderContext render_context, dmRender::HFontMap system_font_map) |