| 164 | } |
| 165 | |
| 166 | static void ClearCachedTextLayouts(HRenderProfile render_profile) |
| 167 | { |
| 168 | if (!render_profile) |
| 169 | return; |
| 170 | |
| 171 | dmHashTable64<HTextLayout>::Iterator iter = render_profile->m_LabelTextLayouts.GetIterator(); |
| 172 | while (iter.Next()) |
| 173 | { |
| 174 | TextLayoutRelease(iter.GetValue()); |
| 175 | } |
| 176 | render_profile->m_LabelTextLayouts.Clear(); |
| 177 | render_profile->m_TextLayoutFontMap = 0; |
| 178 | } |
| 179 | |
| 180 | static bool CreateProfilerTextLayout(HRenderProfile render_profile, dmRender::HFontMap font_map, const char* text, const dmRender::DrawTextParams& params, HTextLayout* out_layout) |
| 181 | { |
no test coverage detected