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

Merged
merged 1 commit into from May 9, 2024

Commits on May 9, 2024

  1. 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
    JuliaSullivanGoogle authored and Copybara-Service committed May 9, 2024
    Configuration menu
    Copy the full SHA
    1f30542 View commit details
    Browse the repository at this point in the history