Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 4dc0516

Browse files
Add introspection for text rendering (#4628)
1 parent 518fd6f commit 4dc0516

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OrbitGl/QtTextRenderer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ std::vector<float> QtTextRenderer::GetLayers() const {
9191

9292
void QtTextRenderer::AddText(const char* text, float x, float y, float z,
9393
TextFormatting formatting) {
94+
ORBIT_SCOPE_FUNCTION;
9495
AddText(text, x, y, z, formatting, nullptr, nullptr);
9596
}
9697

9798
void QtTextRenderer::AddText(const char* text, float x, float y, float z, TextFormatting formatting,
9899
Vec2* out_text_pos, Vec2* out_text_size) {
100+
ORBIT_SCOPE_FUNCTION;
99101
if (out_text_pos != nullptr) {
100102
(*out_text_pos)[0] = (*out_text_pos)[1] = 0.f;
101103
}
@@ -159,6 +161,7 @@ void QtTextRenderer::AddText(const char* text, float x, float y, float z, TextFo
159161
float QtTextRenderer::AddTextTrailingCharsPrioritized(const char* text, float x, float y, float z,
160162
TextFormatting formatting,
161163
size_t trailing_chars_length) {
164+
ORBIT_SCOPE_FUNCTION;
162165
QString text_as_qstring(text);
163166
const size_t text_length = text_as_qstring.length();
164167
if (text_length == 0) {

0 commit comments

Comments
 (0)