Skip to content

Commit 9e8cfe4

Browse files
committed
Bug 1616364 - initailize thread profiler on Compositor thread only once r=gw
[import_pr] From servo/webrender#3864 Differential Revision: https://phabricator.services.mozilla.com/D63242 UltraBlame original commit: e106dc52d496cbcadece6b6dcab57071ac815644
1 parent 2fce63f commit 9e8cfe4

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

gfx/wr/webrender/src/renderer.rs

+18-11
Original file line numberDiff line numberDiff line change
@@ -11418,6 +11418,24 @@ RenderApiSender
1141811418
RendererError
1141911419
>
1142011420
{
11421+
if
11422+
!
11423+
wr_has_been_initialized
11424+
(
11425+
)
11426+
{
11427+
register_thread_with_profiler
11428+
(
11429+
"
11430+
Compositor
11431+
"
11432+
.
11433+
to_owned
11434+
(
11435+
)
11436+
)
11437+
;
11438+
}
1142111439
HAS_BEEN_INITIALIZED
1142211440
.
1142311441
store
@@ -11835,17 +11853,6 @@ max_texture_layers
1183511853
(
1183611854
)
1183711855
;
11838-
register_thread_with_profiler
11839-
(
11840-
"
11841-
Compositor
11842-
"
11843-
.
11844-
to_owned
11845-
(
11846-
)
11847-
)
11848-
;
1184911856
device
1185011857
.
1185111858
begin_frame

0 commit comments

Comments
 (0)