Skip to content

Commit

Permalink
Bug 1616364 - initailize thread profiler on Compositor thread only on…
Browse files Browse the repository at this point in the history
…ce r=gw

[import_pr] From servo/webrender#3864

Differential Revision: https://phabricator.services.mozilla.com/D63242

UltraBlame original commit: e106dc52d496cbcadece6b6dcab57071ac815644
  • Loading branch information
marco-c committed Feb 23, 2020
1 parent 421af9b commit 8d7af42
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions gfx/wr/webrender/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11418,6 +11418,24 @@ RenderApiSender
RendererError
>
{
if
!
wr_has_been_initialized
(
)
{
register_thread_with_profiler
(
"
Compositor
"
.
to_owned
(
)
)
;
}
HAS_BEEN_INITIALIZED
.
store
Expand Down Expand Up @@ -11835,17 +11853,6 @@ max_texture_layers
(
)
;
register_thread_with_profiler
(
"
Compositor
"
.
to_owned
(
)
)
;
device
.
begin_frame
Expand Down

0 comments on commit 8d7af42

Please sign in to comment.