Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set FLAG_HARDWARE_ACCELERATED in ShadowPackageManger.addActivityIfNotPresent #9032

Open
wants to merge 1 commit into
base: google
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Apr 26, 2024

Set FLAG_HARDWARE_ACCELERATED in ShadowPackageManger.addActivityIfNotPresent

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

@copybara-service copybara-service bot force-pushed the piper_628494031 branch 4 times, most recently from 5267ca2 to fdef0c0 Compare May 3, 2024 22:17
@copybara-service copybara-service bot changed the title Set FLAG_HARDWARE_ACCELERATED in ShadowWindow constructor. Set FLAG_HARDWARE_ACCELERATED in ShadowPackageManger.addActivityIfNotPresent May 8, 2024
…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: 628494031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant