-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set FLAG_HARDWARE_ACCELERATED in ShadowPackageManger.addActivityIfNot…
…Present Previously, only Activities that were present in an AndroidManifest.xml would contain the FLAG_HARDWARE_ACCELERATED window flag, which gets populated by PackageParser. This means that Activities not present in a manifest could not be rendered with a HardwareRenderer, as it would get ignored due to the missing flag. This meant that the HW rendering version of PixelCopy would not operate on that Activity. The FLAG_HARDWARE_ACCELERATED was true by default since Android ICS (SDK 14), so it should be true by default in Robolectric as well. Fixes #8982 PiperOrigin-RevId: 632255888
- Loading branch information
1 parent
1ae1478
commit 2510878
Showing
5 changed files
with
8 additions
and
16 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
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