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

Function ClearTransientTextLayouts

engine/profiler/src/profiler_render.cpp:152–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 };
151
152 void ClearTransientTextLayouts(HRenderProfile render_profile)
153 {
154 if (!render_profile)
155 return;
156
157 uint32_t count = render_profile->m_TransientTextLayouts.Size();
158 for (uint32_t i = 0; i < count; ++i)
159 {
160 TextLayoutRelease(render_profile->m_TransientTextLayouts[i]);
161 }
162 render_profile->m_TransientTextLayouts.SetSize(0);
163 render_profile->m_TextCodePoints.SetSize(0);
164 }
165
166 static void ClearCachedTextLayouts(HRenderProfile render_profile)
167 {

Callers 4

DeleteMethod · 0.85
DrawFunction · 0.85
RenderProfilerFunction · 0.85
TEST_FFunction · 0.85

Calls 3

TextLayoutReleaseFunction · 0.85
SizeMethod · 0.45
SetSizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68