Commit Graph

7793 Commits

Author SHA1 Message Date
sergeyv
422e2b4829 HWUI: move microbench to APCT infrastructure
bug:29515780
Change-Id: I06f0518e2948d4268a1fa8ec99e08b5fcaaa3afd
2016-06-20 22:39:26 +00:00
John Reck
cb96c826f3 Merge \\\"Avoid re-calculating vsync mid-frame\\\" into nyc-dev am: fc275d244e am: cb0649f72b
am: a32df88d7d

Change-Id: Ica67f2cf6e78bdde5170e47ef6fb150f234a47cf
2016-06-18 02:29:19 +00:00
John Reck
a32df88d7d Merge \\"Avoid re-calculating vsync mid-frame\\" into nyc-dev am: fc275d244e
am: cb0649f72b

Change-Id: I7cc9443c1ab3e876daa3aeecbcb9a41085f359af
2016-06-18 02:08:56 +00:00
John Reck
cb0649f72b Merge \"Avoid re-calculating vsync mid-frame\" into nyc-dev
am: fc275d244e

Change-Id: Ic46d2d9627c4dcbd345b49f01af0bf3b8247259c
2016-06-18 02:05:17 +00:00
Sergei Vasilinetc
9b24bb24c2 Merge "HWUI: add leak check for macrobench" 2016-06-18 00:04:43 +00:00
John Reck
29d562fa01 Merge \\"Move SurfaceView offscreen if the app stops drawing it\\" into nyc-mr1-dev am: e66dedf35b
am: 61513724f0

Change-Id: Ic02576c35007d6aaaa8807c529ab54717d2740a7
2016-06-17 21:51:20 +00:00
sergeyv
7dc370bfe3 HWUI: add leak check for macrobench
Change-Id: Id2037921fdbe599b3c722f2e1d17b99f3b74361c
2016-06-17 14:34:22 -07:00
John Reck
0825164007 Merge \\\\"Performance Optimization: Align texture dirty rect\\\\" am: 4e6a73c16a am: ec45adde70 am: 89132e094f
am: 8ef6b2e628

Change-Id: I46613fa164ab541a313abeadd2b2c4a3b48aad50
2016-06-17 21:00:30 +00:00
John Reck
501ff9acfe Avoid re-calculating vsync mid-frame
Fixes: 29072773

By using computeFrameTime AnimationContext would
potentially end up modifying the latest vsync if
a very-slow frame was received from the UI thread.

This could potentially desync animations that were
RT & UI thread 'synchronized', but more significantly
it would confuse the swap chain which tries to only
draw one frame per vsync causing unneccessary frame
drops.

Change-Id: Ibd2ec3157ce32fee1eec8d56837c45a35e622895
2016-06-17 20:44:43 +00:00
John Reck
61513724f0 Merge \"Move SurfaceView offscreen if the app stops drawing it\" into nyc-mr1-dev
am: e66dedf35b

Change-Id: I3d070161a4bdacd0cdcf2e61f026f9fffe15890e
2016-06-17 20:20:38 +00:00
John Reck
aa6e84f21d Move SurfaceView offscreen if the app stops drawing it
Bug: 29360411
Change-Id: Iefb9d7a9dafb34a2b4f79130a2a8b5a7cf7de906
2016-06-17 10:23:54 -07:00
Seigo Nonaka
99a8e2faac Merge "Follow the minikin namespace changes" 2016-06-17 03:59:53 +00:00
Sergei Vasilinetc
83b2cb1304 Merge "Test scene that mocks list view with text items faded on left edge." 2016-06-17 00:57:51 +00:00
sergeyv
06a62f6f53 Test scene that mocks list view with text items faded on left edge.
Change-Id: I6159f02fa511241beaff4f0eb605c4f0bee360d1
2016-06-16 15:58:49 -07:00
ywen
8ef6b2e628 Merge \\\"Performance Optimization: Align texture dirty rect\\\" am: 4e6a73c16a am: ec45adde70
am: 89132e094f

Change-Id: I198fc7403ad5e42dbb0caaac33185c8169b3aebc
2016-06-16 21:59:21 +00:00
John Reck
89132e094f Merge \\"Performance Optimization: Align texture dirty rect\\" am: 4e6a73c16a
am: ec45adde70

Change-Id: Ice5c2f216dab71fe26b07f9299f8c4300b80f665
2016-06-16 21:47:55 +00:00
ywen
ec45adde70 Merge \"Performance Optimization: Align texture dirty rect\"
am: 4e6a73c16a

Change-Id: I2bafdfadd3d6ff88be44475f77158236015acfde
2016-06-16 21:42:13 +00:00
John Reck
4e6a73c16a Merge "Performance Optimization: Align texture dirty rect" 2016-06-16 21:35:12 +00:00
Adam Lesinski
02e68a1619 Merge \\\"ResourcesManager: Allow managed addition of library asset paths\\\" into nyc-dev am: 464bda8a2b am: c3ab1b7c0a
am: f4152a9c7e

Change-Id: I2b3190f567f62bfaeed54ec6047cfd42bcd246e8
2016-06-15 23:14:51 +00:00
Adam Lesinski
f4152a9c7e Merge \\"ResourcesManager: Allow managed addition of library asset paths\\" into nyc-dev am: 464bda8a2b
am: c3ab1b7c0a

Change-Id: I6d268a2d0871de19a57358ff7755c525906aae1c
2016-06-15 22:57:08 +00:00
Adam Lesinski
1dda5b39d4 Merge \"ResourcesManager: Allow managed addition of library asset paths\" into nyc-dev
am: 464bda8a2b

Change-Id: I0609c73c4f36b48970bba83b6ea5bd95e6c2d956
2016-06-15 22:47:58 +00:00
Adam Lesinski
c3ab1b7c0a Merge \"ResourcesManager: Allow managed addition of library asset paths\" into nyc-dev
am: 464bda8a2b

Change-Id: I352c56482aca030efab49ca39301679b51e44e05
2016-06-15 22:44:43 +00:00
Adam Lesinski
464bda8a2b Merge "ResourcesManager: Allow managed addition of library asset paths" into nyc-dev 2016-06-15 22:35:26 +00:00
Adam Lesinski
25f48886b2 ResourcesManager: Allow managed addition of library asset paths
This allows WebView to add itself to the ResourcesManager and
remain their even after configuration changes and multi-window
changes.

Bug:29112218
Change-Id: I2cb131ae2c61fb58c48babafdd46c1882be96aa9
2016-06-15 12:00:18 -07:00
Roozbeh Pournader
7e5f96f1a3 Move matching Tagalog and Filipino to ResourceTypes.cpp
Previously, if a mix of "fil" and "tl" resources existed in Resources
(from mixing resources from libraries for example), only resources
from one or the other would be chosen, resulting in default resources
getting surprisingly used. Now, we resolve the equivalent languages
at a per-resource levels (breaking ties for the identical code).

Also, previously if both "tl" and "fil" resources were present in
assets, getLocales() could return a list with duplicate locales.
This change removes Filipino duplicates in the return value of
AssetManager::getLocales().

Finally, there was a bug in the replacement of "tl" with "fil" that
considered any locale starting with the letter "tl" to be Tagalog.
This failed in case of various languages, including Klingon ("tlh")
and Tlingit ("tli"). It's now fixed.

Bug: 29073000
Change-Id: I0e8b9ae337ced2e640a2575897948c4c5ca307d3
2016-06-15 11:45:58 -07:00
ywen
229cad0ab2 Performance Optimization: Align texture dirty rect
Align x offset and width to 32, y offset and height to 4.
It improves the font texture upload performance.

Change-Id: I967eeed90658f2ce1eb08cb2740d5dc34c72f40b
2016-06-15 08:32:25 +00:00
John Reck
21a7b6e8e3 Merge \\\"Redraw if dirty during stopped when resumed\\\" into nyc-dev am: 5b4ff21a74 am: fc4c59a10c
am: 6c3281a7c7

Change-Id: I67192e2450293a6520a30ed78c8381b89558841b
2016-06-14 15:04:35 +00:00
John Reck
6c3281a7c7 Merge \\"Redraw if dirty during stopped when resumed\\" into nyc-dev am: 5b4ff21a74
am: fc4c59a10c

Change-Id: Id572ab8137655b8f64e563d78897d2461442dd39
2016-06-14 14:58:56 +00:00
John Reck
f22f6cf0f3 Merge \"Redraw if dirty during stopped when resumed\" into nyc-dev
am: 5b4ff21a74

Change-Id: I75235a18c29939b4f221c8af664d5f7218660aed
2016-06-14 14:54:21 +00:00
John Reck
fc4c59a10c Merge \"Redraw if dirty during stopped when resumed\" into nyc-dev
am: 5b4ff21a74

Change-Id: If4eedb4a4c1ff6d4e96f8b0db4ddd846a2967a9f
2016-06-14 14:54:18 +00:00
John Reck
5b4ff21a74 Merge "Redraw if dirty during stopped when resumed" into nyc-dev 2016-06-14 14:43:20 +00:00
Doris Liu
ce3616cf23 Merge \\"Test RenderNode\\'s prepareTree when its DL is null and non-null\\" into nyc-mr1-dev am: 3d66bdb56d
am: 33b9430e90

Change-Id: I7da03063523bd731b83a8a412592dec4b30b2fd9
2016-06-13 23:59:01 +00:00
Doris Liu
33b9430e90 Merge \"Test RenderNode\'s prepareTree when its DL is null and non-null\" into nyc-mr1-dev
am: 3d66bdb56d

Change-Id: I55aab1c33b1da1b28eb5cb0b9347d7edad5c8666
2016-06-13 23:51:08 +00:00
Doris Liu
ff3371e282 Merge \\"Chcek for valid render content before damaging RenderNode for dirty VD\\" into nyc-mr1-dev am: d53dd6fd3f
am: 9559ef45e7

Change-Id: I6c80525dcc5f0cc72a4631246280193b31c4e278
2016-06-13 23:01:08 +00:00
Doris Liu
9559ef45e7 Merge \"Chcek for valid render content before damaging RenderNode for dirty VD\" into nyc-mr1-dev
am: d53dd6fd3f

Change-Id: If41865d28e7f57258c40c0b087d9f70a823c38e9
2016-06-13 22:39:09 +00:00
Doris Liu
a7952b33f6 Test RenderNode's prepareTree when its DL is null and non-null
BUG: 29320878
Change-Id: I3325e957025d0039faf366144dcd2d95790ccfd1
2016-06-13 22:05:11 +00:00
Doris Liu
07c056d627 Chcek for valid render content before damaging RenderNode for dirty VD
BUG: 29320878
Change-Id: I847d76467bad92c956a4bb7617627983d64e90f9
2016-06-13 12:52:44 -07:00
John Reck
306f331f91 Redraw if dirty during stopped when resumed
Change-Id: I0034d1da7704de53c4ba3da3e8ef3109445f9e6a
Fixes: 28283031
2016-06-10 16:28:59 -07:00
Chris Craik
cbcc3d5c3a Merge \\\"Fix framebuffer incomplete errors\\\" into nyc-dev am: 4bcf66030d am: 7156913021
am: 22696fc0e4

Change-Id: Ib824dd0b3df68c37e3fd7ff5613b99d0687add69
2016-06-10 16:20:17 +00:00
Chris Craik
22696fc0e4 Merge \\"Fix framebuffer incomplete errors\\" into nyc-dev am: 4bcf66030d
am: 7156913021

Change-Id: I7f01add5270c4979a189b03feed2aea0d97fa819
2016-06-10 16:15:58 +00:00
Chris Craik
bc640cb016 Merge \"Fix framebuffer incomplete errors\" into nyc-dev
am: 4bcf66030d

Change-Id: If578de7d7ea10cceb0e19eb68e305432e4177d04
2016-06-10 16:08:44 +00:00
Chris Craik
7156913021 Merge \"Fix framebuffer incomplete errors\" into nyc-dev
am: 4bcf66030d

Change-Id: I478d99bc0b1f1f10fef38505282711e95b7f5a09
2016-06-10 16:08:38 +00:00
Seigo Nonaka
ae1aa85d0c Follow the minikin namespace changes
Bug: 29233740
Change-Id: I0ec7c5c88e64daa626751d3a03e24b9c36521c17
2016-06-11 00:08:25 +09:00
Chris Craik
d4fe4d3b30 Fix framebuffer incomplete errors
bug:29127615

Primarily fixes case where 0 dimensioned layers could be
created/updated. Additionally, adds more logging in incomplete
framebuffer cases, if they still occur.

Change-Id: Ib90dbbafd6905aca3c8f46e64064e13a308f713d
2016-06-09 17:05:27 -07:00
Doris Liu
7da4903bf9 Merge changes from topic \'VectorDrawable polishing cherrypicks from master\' into nyc-mr1-dev
am: ea06280b3e

Change-Id: I8d5a26b50f6737964047d06e5e27abbdc4ba6381
2016-06-09 23:42:16 +00:00
Doris Liu
09087eaac9 Merge \"Handle hidden RT VectorDrawable animators\" into nyc-mr1-dev
am: 3f6a95283a

Change-Id: I909f3c33690fcb932f1b751def1837d82adb28f4
2016-06-09 21:44:01 +00:00
Doris Liu
c9493879d7 Support Keyframe definition for AVD on RT
BUG: 27441613
Change-Id: Iece386f65f3704d1b7caa2b3690a8d3048ccf6e2
2016-06-09 14:40:32 -07:00
Doris Liu
718cd3eb70 Handle hidden RT VectorDrawable animators
This CL changes the target of VD specific animators to VectorDrawable,
instead of RenderNode. The benefit of doing so is that animators can
now detect whether the animation is meaningful by checking whether
their VD target is in the display list. If not, that means the VD is
not drawing for the current frame, in which case we can be smarter
and more power efficient by removing the animator from the list and
posting a delayed onFinished listener callback.

By setting VD as the animation target, when an ImageView decides to
update its drawable from one AVD to something else, we'll be able
to detect that the previous AVD is no longer in the display list,
and stop providing animation pulse to the stale AVD, which is
something we couldn't do previously.  This change also
handles the case where one AVD instance could be drawn in two
different views.

Bug: 27441375
Change-Id: Iaad1ed09cfd526276b95db0dd695275c28e074e8
2016-06-09 10:27:59 -07:00
TreeHugger Robot
44d6e652c8 Merge "Remove Pointer Capture API" 2016-06-09 16:04:26 +00:00
Doris Liu
7e1d493267 Merge "Support Keyframe definition for AVD on RT" 2016-06-09 00:05:41 +00:00