Commit Graph

12745 Commits

Author SHA1 Message Date
Chris Li
b4aec6206f Merge "Determine whether to support activities in multi window (8/n)" into sc-dev 2021-05-14 22:28:18 +00:00
Nader Jawad
40943ec440 Merge changes I0b36f486,Ida0d0dee into sc-dev
* changes:
  Improve Stretch shader performance more
  Improve Stretch shader performance
2021-05-14 17:03:18 +00:00
Greg Daniel
830db628b8 Merge "Add a mutex to VulkanManager::initialize." into sc-dev 2021-05-14 16:55:14 +00:00
Chavi Weingarten
1b0e20108d Merge "Add CAPTURE_BLACKOUT_CONTENT permission" into sc-dev 2021-05-14 16:28:43 +00:00
Greg Daniel
1d9de71ed9 Add a mutex to VulkanManager::initialize.
The initialize call can be made from both an GrallocUploadThread
and the RenderThread. So we need a mutex to make sure both
threads don't try to initialize in parallel.

Bug: 187218890
Test: manual running of device, guessing this could fix bug.
Change-Id: I203afd91fad5eacc131c839dff1a1065864b76f8
2021-05-14 10:42:34 -04:00
Jason Chang
e8b62e4d23 Merge "(1/n) Disabling OHM gesture in NavigationBar 3 Button mode" into sc-dev 2021-05-14 07:40:34 +00:00
Jerry Chang
c0302f5092 Merge "Only reparent controlling tasks when entering split" into sc-dev 2021-05-14 04:53:16 +00:00
Nader Jawad
76d84aec28 Improve Stretch shader performance more
Refactor stretch shader to always work in
skia's coordinate system instead of normalizing
the input coordinates.
Improves performance on coral by approximately 10-20% across
various use cases on top of the branching refactoring
perf improvements
~1k fps to ~1.1k fps on non-surfaceview cases
~500 fps to ~600 fps o surfaceview cases

Bug: 187718492
Test: manual
Change-Id: I0b36f48699739979948bfec160a8aa64fc80b7a7
2021-05-13 20:43:18 -07:00
Huihong Luo
f410f8134f Merge "Fix leakage of ASurfaceTransactionCallback" into sc-dev 2021-05-14 03:33:53 +00:00
Jerry Chang
68667bdd3a Merge "Fix wrong split bounds in legacy split flicker tests" into sc-dev 2021-05-14 02:29:18 +00:00
Nader Jawad
91a55b613d Improve Stretch shader performance
Refactor stretch shader to return within
conditional blocks instead of falling
through to main function body.
Improves performance on coral by approximately 60%
~600 fps to ~1k fps on non-surfaceview case
~300 fps to 500 fps on surfaceview case

Bug: 187718492
Test: manual
Change-Id: Ida0d0dee9c94b0ac210a024708100283fecc2a5c
2021-05-13 19:08:04 -07:00
TreeHugger Robot
3d1ab8c9ef Merge "Fix some FD lifecycle issues" into sc-dev 2021-05-14 01:13:25 +00:00
John Reck
22b214ba67 Merge "Have HWUI validate the WebViewFunctors at registration" into sc-dev 2021-05-13 22:35:46 +00:00
Ryan Mitchell
47fb18bed8 Merge "Set ApkAssets path for fabricated rros" into sc-dev 2021-05-13 22:33:17 +00:00
John Reck
f0baa24d43 Fix some FD lifecycle issues
Use unique_fd, it's cool

Bug: 186919605
Test: make, guessing from a pretty clear error message & documentation
Change-Id: Ied546565261708b7e4c2d220dce6d6a89725cc06
2021-05-13 18:15:50 -04:00
John Reck
faa1b0ab2a Have HWUI validate the WebViewFunctors at registration
Also tweak how webview's plat_support creates the functor
sruct to be thread-safe, avoids any potential race conditions
even though WebView itself is stated to be thread-hostile in
general. It's too easy to have this just be defined-safe instead.

Bug: 186814981
Test: build & boot, no crashes in real-webview apps
Change-Id: I06f02a279e248fee375ce133c5ce9a2250665ad9
2021-05-13 17:17:21 -04:00
Ryan Mitchell
bdc0ae1247 Set ApkAssets path for fabricated rros
Fabricated RROs do not provide assets but are stored on disk. Ensure
that the path to the frro is returned when querying for the ApkAssets
path (which is mostly for debug purposes).

Bug: 181338216
Test: enable frro, use cmd overlay lookup to see path in resolution
Change-Id: Ibf9b1bf0a995325affbf084c71b1e87c5682e734
2021-05-13 13:41:26 -07:00
Jerry Chang
80d67949a2 Only reparent controlling tasks when entering split
Only move split controlling tasks to split secondary root when entering
split. So that it could align with launch root rule while in split.

Fix: 187892355
Test: enter split screen while having assist type task in recent,
observed it won't reparent assist type task to split-secondary-root.

Change-Id: I648dc74e2e44d62a0e40d50b29b08dd23b85ed26
2021-05-14 01:38:36 +08:00
Jerry Chang
93edc1eae5 Fix wrong split bounds in legacy split flicker tests
Fix: 188013792
Test: passed presubmit
Change-Id: I675633a078d172f9c8cd836980658c4f2aa2d246
2021-05-13 16:23:42 +08:00
Wei Sheng Shih
a9cbf391e0 Merge "Enable app reveal animation after splash screen." into sc-dev 2021-05-13 01:40:49 +00:00
TreeHugger Robot
5c681088e4 Merge "More benchmark tweaks" into sc-dev 2021-05-13 00:53:03 +00:00
Jason Chang
1d1ea541f0 (1/n) Disabling OHM gesture in NavigationBar 3 Button mode
1) UX mentioned the swipe gesture in 3-Button NavgationBar area
may confuse user from taping NavBar buttons(Back, Home, Recents).
They decide to disable the swipe gesture and allow user to trigger
One Handed Mode(3 Button Mode) through A11y shortcut.
However, user can still use OHM by enabled shortcut button on
both Gesture Navigation & 3-Button mode.

2) OHM gestural handler consume the touch event while window
Magnification overlap with NavigationBar area in 3-button mode,
this result Magnification function can no long obtain the control.

Bug: 184903678
Bug: 179648683

Test: manual
Test: atest WMShellUnitTests
Change-Id: Ib9a06e19d749707e6f5e08c3ef803c1681f86bbc
2021-05-13 08:47:56 +08:00
John Reck
3920768c72 More benchmark tweaks
Bug: 187718492
Test: this
Change-Id: Ie0cad91e1c7d1a02704fc4b1007ba2c28cb2b3e7
2021-05-12 19:29:03 -04:00
chaviw
fb796315ed Add CAPTURE_BLACKOUT_CONTENT permission
Added a permssion to allow an application to capture screenshots of
layers that would normally be blacked out.

Test: Builds, screenshots still work as before
Test: ScreenshotTests
Bug: 173746627
Change-Id: I27237c8e340904cbaa82c7e5793de35cab85d8de
2021-05-12 18:00:36 -05:00
Chris Li
806b5b8ed6 Merge "Determine whether to support activities in multi window (5/n)" into sc-dev 2021-05-12 22:37:41 +00:00
Ben Lin
4c21ac8f33 Merge "PiP: Update menu state AFTER animation is done for show/hide/resize." into sc-dev 2021-05-12 21:34:48 +00:00
Ben Lin
8c39ee10d3 Merge "PiP: Recheck condition to pass input to menu." into sc-dev 2021-05-12 21:33:01 +00:00
Leon Scroggins
5183641bef Merge "PIP: Always enable rounded corners" into sc-dev 2021-05-12 21:02:05 +00:00
TreeHugger Robot
c9216d334b Merge "Provide proper transform to mask canvas" into sc-dev 2021-05-12 20:57:56 +00:00
Nader Jawad
9238f59d97 Provide proper transform to mask canvas
Updated mask canvas to have the same
transformation applied to the initial
target canvas and device

Bug: 184297961
Test: manual
Change-Id: Ibdeefba8ec9f95f4acd7e3176f43a5e603e76676
2021-05-12 12:16:26 -07:00
John Reck
f5c2981163 Merge "Add some more scenes, replace linear with uniform" into sc-dev 2021-05-12 15:07:36 +00:00
Leon Scroggins III
4dda15cd27 PIP: Always enable rounded corners
Bug: 187922869

Previously, we turned on rounded corners with a sysprop in
bf309e63d4. Now that a bug in rendering
them in landscape has been fixed, remove the sysprop and always use
the rounded corners radius specified in the xml file.

Change-Id: Ib0f61bbcbee6ead82beec2b149b0892836492b78
2021-05-12 10:37:43 -04:00
Jordan Demeulenaere
ac3b62b2d0 Merge "Scale splash screen icon by 1.2 instead of 1.3" into sc-dev 2021-05-12 13:19:10 +00:00
Jordan Demeulenaere
c970b02ee0 Enable app reveal animation after splash screen.
Bug: 184830058
Test: Open an app
Change-Id: I91746ebb8fd86d4db8c94a42712da094009d49be
2021-05-12 10:21:32 +00:00
TreeHugger Robot
f196d46fdf Merge "Macrobenchmark tweaks & gpu memory dumping" into sc-dev 2021-05-12 03:21:29 +00:00
John Reck
8088f8e505 Add some more scenes, replace linear with uniform
Test: this
Bug: 187718492
Change-Id: I171b5c15cd18645c2da1cffffa9635f83f8877e6
2021-05-11 20:53:30 -04:00
TreeHugger Robot
a2883f3b31 Merge "Ignore blocked-on-sf time for ADPF" into sc-dev 2021-05-12 00:44:45 +00:00
Ben Lin
dcecbaed57 PiP: Recheck condition to pass input to menu.
This used to be OR (pip is not stashed), but it should be AND.

Bug: 186499713
Test: Double tap on where the play button should be even when the menu
is not visible, no longer pauses

Change-Id: If8e101286ddfbb83caf0d6a85a1089e6c257f996
2021-05-11 16:23:40 -07:00
TreeHugger Robot
c5f21ce435 Merge "HWUI: mSerialContext needs to outlive other serializing members" into sc-dev 2021-05-11 23:16:24 +00:00
John Reck
66e06d4ff1 Macrobenchmark tweaks & gpu memory dumping
Add support for glob matching
Ensure glob matches are alphabetically sorted
Add feature to dump GPU memory usage after a test pass
Adjust gpu memory dump to be a bit more compact (skip empty outputs)

Test: this
Bug: 187718492
Change-Id: I6dc80b2d3379d8d10001116e1240727d9914bc10
2021-05-11 17:06:53 -04:00
TreeHugger Robot
a1f1ba172b Merge "Add <staging-public-group-final> to aapt2 (2/2)" into sc-dev 2021-05-11 20:27:56 +00:00
TreeHugger Robot
46614cfa99 Merge changes I9a231625,Idaf3a905 into sc-dev
* changes:
  Avoid creating a layer for linear stretch
  Add a stretchy benchmark
2021-05-11 17:50:41 +00:00
Collin Fijalkovich
93df39ae49 Merge "Compile libhwui.so with 2MB section alignment." am: 919e8c1ba3 am: 2cf6388ff3 am: 18b7ad49da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685430

Change-Id: I5bc88e07bc7455c10ba39c953f7667a4486bb041
2021-05-11 17:06:07 +00:00
John Reck
09d9ccadc3 Avoid creating a layer for linear stretch
Bug: 187718492
Test: manual logging no layer updates during benchmark
Change-Id: I9a231625142e404882be6c53fa6d01b2fb81af1a
2021-05-11 12:26:52 -04:00
John Reck
a8427802f5 Add a stretchy benchmark
Test: this
Bug: 187718492
Change-Id: Idaf3a90567a4f90c7089159b496ddf4aac24bf05
2021-05-11 12:26:18 -04:00
Sunny Goyal
b04efdff70 Merge "Removing generalization from OneHandledAnimationController" into sc-dev 2021-05-11 16:20:44 +00:00
Collin Fijalkovich
919e8c1ba3 Merge "Compile libhwui.so with 2MB section alignment." 2021-05-11 16:13:58 +00:00
Ryan Mitchell
2ec8e1b71f Add <staging-public-group-final> to aapt2 (2/2)
Fixes BinaryResourceParser loading of alias chunk and makes changes
that did not get committed in 2fedba9a32.

Bug: 183411356
Test: aapt2_test
Change-Id: Ieff9166100019f38ddcfe900014709b15db24e43
2021-05-11 08:28:00 -07:00
Jordan Demeulenaere
4acb22437c Scale splash screen icon by 1.2 instead of 1.3
Bug: 186847483
Test: Open an app
Change-Id: I889df24a8a39bafa3c4c5eec6b14536a7cc804a2
2021-05-11 17:15:54 +02:00
Ryan Mitchell
15bb7d1379 Merge "Add <staging-public-group-final> to aapt2" into sc-dev 2021-05-11 15:05:02 +00:00