Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Do not resume compositor when WebVR is exited after suspending the app (
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored Mar 26, 2020
1 parent 7311bdc commit e083e4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,11 @@ void resumeGeckoViewCompositor() {
GleanMetricsService.stopImmersive();
Handler handler = new Handler(Looper.getMainLooper());
handler.postDelayed(() -> {
mWindows.resumeCompositor();
Log.d(LOGTAG, "Compositor Resumed");
if (!mWindows.isPaused()) {
Log.d(LOGTAG, "Compositor resume begin");
mWindows.resumeCompositor();
Log.d(LOGTAG, "Compositor resume end");
}
}, 20);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ public void onResume() {
TelemetryWrapper.resetOpenedWindowsCount(mPrivateWindows.size(), true);
}

public boolean isPaused() {
return mIsPaused;
}

public void onDestroy() {
if (mTabsWidget != null && !mTabsWidget.isReleased()) {
mTabsWidget.releaseWidget();
Expand Down

0 comments on commit e083e4b

Please sign in to comment.