Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] Notify ProcessVisibilityTracker in the GPU process
This change: - adds GpuServiceImpl::SetVisibilityChangedCallback() method to register a callback; - updates GpuServiceImpl::OnBackgrounded/OnForegrounded to run the callback on the main thread; - registers the callback in it GpuChildThread::OnGpuServiceConnection for an out-of-process GPU service. This will only work on Android since OnBackgrounded/OnForegrounded is only called there. Bug: 1177542 Change-Id: Ia11ff91726f986ad46519a3299fd7e7c12f93dc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2717340 Reviewed-by: Kenneth Russell <kbr@chromium.org> Reviewed-by: Eric Seckler <eseckler@chromium.org> Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#859110}
- Loading branch information
Oksana Zhuravlova
authored and
Chromium LUCI CQ
committed
Mar 2, 2021
1 parent
bacc9ba
commit 0465118
Showing
4 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters