MCPcopy Create free account
hub / github.com/defold/defold / ClearCachedTextLayouts

Function ClearCachedTextLayouts

engine/profiler/src/profiler_render.cpp:166–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

DeleteMethod · 0.85
DrawFunction · 0.85

Calls 4

TextLayoutReleaseFunction · 0.85
GetIteratorMethod · 0.80
NextMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected