7295 Commits

Author SHA1 Message Date
Sergei Vasilinetc
67bd3b5256 Merge "Add GlopBuilder test for snapping" into nyc-dev 2016-03-11 23:43:10 +00:00
sergeyv
f42bf3e257 Add GlopBuilder test for snapping
Change-Id: I7aa5cddef6f0a0e78f3ade67b0446c1f76cf3d13
2016-03-11 14:33:26 -08:00
Chris Craik
e83cca3a3a Merge "Fix node rejection crash" into nyc-dev 2016-03-10 23:45:20 +00:00
Chris Craik
1367d2550e Fix node rejection crash
bug:27598131
Change-Id: Iea05c22ec10f92beef9c47236929eb5f860d84f9
2016-03-10 15:43:13 -08:00
Chris Craik
ed5916d2be Merge "Fix WebView disappearing" into nyc-dev 2016-03-10 19:21:13 +00:00
Chris Craik
223e3b6c2b Fix WebView disappearing
bug:27528563

Change-Id: Ib9fefa18ef9fb8eb11edd097cbadf8ab2b911576
2016-03-10 10:49:45 -08:00
Adam Lesinski
ff5808d223 AssetManager: Cache a pre-filtered list of configurations
When we set the parameters for a ResTable, we can pre-filter which
resources match and only look at that smaller list when getting entries.
This helps A LOT with types that have many configurations, like strings
and all their various locales.

We must store the cached entries in a parallel data structure because parts
of the main Type object are shared with other ResTables, causing data races.

Bug:25499111
Change-Id: I63e37dcbd683fc9f1e7d0f3a6ed4c1c01e0fc575
2016-03-09 17:33:14 -08:00
Chris Craik
727819d134 Merge "Partial revert of 261725fdb2962271c222a049fcdf57bbdc8363c7" into nyc-dev 2016-03-10 00:26:20 +00:00
Chris Craik
034a10bf21 Partial revert of 261725fdb2962271c222a049fcdf57bbdc8363c7
Bug:27534946

Mapping empty rects still must be done to get correct positions for
line/point rects describing strokable bounds.

Change-Id: I2f9efe543e58eb438b755276585491c1256d6719
2016-03-09 16:14:35 -08:00
Chris Craik
c17232598b Merge "Add initial BakedOpDispatcher tests" into nyc-dev 2016-03-10 00:08:46 +00:00
Chris Craik
419a1e7ef5 Add initial BakedOpDispatcher tests
bug:26571145
bug:26923968
bug:27389290

Change-Id: If8ba33732d09b335171f87d5efc419641bafa126
2016-03-09 16:03:52 -08:00
John Reck
99f1215607 Merge "Add basic LsaVector tests" into nyc-dev 2016-03-09 20:29:46 +00:00
John Reck
77bf1bb928 Merge "Switch hwui to google-benchmark" into nyc-dev 2016-03-09 15:20:11 +00:00
John Reck
308dba5d92 Add basic LsaVector tests
Change-Id: I57600271a4efcb63b1c24b582ead48d51f002c2e
2016-03-08 13:20:06 -08:00
John Reck
f76535cd4a Merge "Fix build breakage" into nyc-dev 2016-03-08 19:06:54 +00:00
John Reck
88737a05b3 Fix build breakage
Update for API change

Change-Id: I649778b5f104a5295c0c827cc832e6190137bd02
2016-03-08 11:03:35 -08:00
John Reck
328653d74c Merge "Add leak-checking to unit tests" into nyc-dev 2016-03-08 18:25:10 +00:00
John Reck
dc87c52cd5 Add leak-checking to unit tests
Initial pass at leak-detection on the unit
tests. Due to quirks in jemalloc we need
to run the leak check on both the main thread
and the RT thread to get decent leak coverage.

Change-Id: I0dce754aef5593f1ef5c3bed86e1168437a34b74
2016-03-08 10:20:28 -08:00
John Reck
0418afa362 Switch hwui to google-benchmark
Change-Id: Ia2b24b8288cb8dc4f9176f4132a24ddcae9b6edd
2016-03-07 13:42:11 -08:00
Adam Lesinski
53185a50d1 Merge "Revert "AssetManager: Cache a pre-filtered list of configurations"" into nyc-dev 2016-03-07 20:22:24 +00:00
Adam Lesinski
fa7d78ae87 Revert "AssetManager: Cache a pre-filtered list of configurations"
There is a race due to the modification of shared data structures in the framework ResTable.

See b/27499488

This reverts commit d4b169173ad7805369204277580d3942cb08174a.

Change-Id: I3f400a2ad3b5ffc652b84dd5fe777f7cf34b5548
2016-03-07 19:39:56 +00:00
Chris Craik
a98222ae7a Merge "Reject RenderNodes contents when clip is empty" into nyc-dev 2016-03-07 17:43:32 +00:00
Chris Craik
8913c8942f Reject RenderNodes contents when clip is empty
bug:22630332

Change-Id: I326123de3154f655e35d649c242daea3b4f0fda0
2016-03-04 16:28:31 -08:00
Chris Craik
b862f5866f Merge "Support GPU profiling vis in new pipeline" into nyc-dev 2016-03-05 00:19:10 +00:00
Chris Craik
1dfa070496 Support GPU profiling vis in new pipeline
bug:27353099

Change-Id: I905c1a998d9a9e2097c047dab9de87a70d7a370e
2016-03-04 16:18:26 -08:00
Chris Craik
485e41d510 Merge "Revert "Disable HWUI_NEW_OPS"" into nyc-dev 2016-03-04 17:58:37 +00:00
Chris Craik
6f270e062c Merge "Fix clip rect snapping at non-integer scale values" into nyc-dev 2016-03-04 17:54:33 +00:00
Chris Craik
69aeabe618 Fix clip rect snapping at non-integer scale values
bug:26923968

Also removes several reinterprets to ClipRect, since Rect member is in
base class.

Change-Id: If46dbdcea05b1257af185ccb38058735ebe81f79
2016-03-03 16:52:34 -08:00
Chris Craik
4123e53846 Merge "Improve handling of undefined-at-record-time bounds in new ops" into nyc-dev 2016-03-04 00:20:46 +00:00
Roozbeh Pournader
7960898f6f Fix script-related parts of locale resource matching
Previously, a bit was kept to find if the script of a locale was
explicitly "provided" in a resource. This was not backward
compatible, and failed in some edge cases when the package was
created with older versions of AAPT that did not set the bit.

The cases would happen when the old resource had an explicit script
specified in its locale, but since the "provided" bit was not set in
the package, we would assume that the script was computed by us.

This CL replaces the "provided" bit with a "computed" bit, so the
default value of the bit (set to "false" for old packages) would be
correct.

Bug: 27156990
Change-Id: I99e7f1ad8f70c90e25ab3640ed34cc1a6f8d1d64
2016-03-03 15:19:37 -08:00
Chris Craik
a154f47307 Improve handling of undefined-at-record-time bounds in new ops
bug:26591194
Change-Id: Ifc695d285d688903e2ef6aa3f0cb9e7ebf1f68d6
2016-03-03 14:16:31 -08:00
Chris Craik
f0a76088f8 Revert "Disable HWUI_NEW_OPS"
bug:27366026

This reverts commit 0bed032eb2d19c339ecaa89a6e3159c0e2ac98de.

Change-Id: I4d569a11bb2b8db73b9984c50941c78ec5c91fe9
2016-03-03 21:07:54 +00:00
Chris Craik
f6c20e4b42 Fix merged bitmap mesh generation and reenable merging
bug:26793764
bug:26569206
Change-Id: I54628e99b61f58f5726a387ea3599c29695c0efc
2016-03-02 15:34:02 -08:00
Chris Craik
b67985f337 Merge changes I4f72448f,I74b7233c into nyc-dev
* changes:
  Fix ripple positioning within scrolled node
  Clip projected ripples to outlines
2016-03-02 18:52:35 +00:00
Chris Craik
a748c08241 Fix ripple positioning within scrolled node
bug:27275799

Skip applying clip/matrix properties from projected node op, since we
don't want to respect the clip, and matrix is already baked into
transformFromCompositedAncestor.

This skips op clips in the new pipeline, and fixed a double application
of scroll on ripple backgrounds.

Change-Id: I4f72448fe0463ab666564ca538d8b6bf525d98de
2016-03-02 10:48:15 -08:00
Adam Lesinski
1df152284d Merge "AssetManager: Cache a pre-filtered list of configurations" into nyc-dev 2016-03-02 18:32:16 +00:00
Chris Craik
678ff81105 Clip projected ripples to outlines
bug:27343928

Also fixes positioning of ripples to a scrolled projection receiver.

Change-Id: I74b7233c46d7c15839ca8bf50e188ba6646d7432
2016-03-02 10:29:15 -08:00
John Reck
f571c4728a Merge "Only copyLayer if valid rendertarget" into nyc-dev 2016-03-01 00:15:21 +00:00
John Reck
33c025cbfb Only copyLayer if valid rendertarget
Bug: 27407637

Texture layers will set a GL_NONE rendertarget
until they have managed to get the real rendertarget
from SurfaceTexture. If, however, copyLayer is called
prior to any calls to updateTexImage() (for example, if
no frames have yet been produced), this will
result in trying to use a Texture with a GL_NONE rendertarget
which is bad.

Change-Id: Ib7285d799cb94ebd44f07a89f2ef2075d79ef71f
2016-02-29 15:49:41 -08:00
Chris Craik
b878a99f23 Merge "Fix matrix mapping of negative rects" into nyc-dev 2016-02-29 22:02:26 +00:00
Chris Craik
5005033fa3 Merge "Fix arc positioning" into nyc-dev 2016-02-29 22:02:23 +00:00
John Reck
9e066cbf59 Fix dirtyMask in AnimateFunctor
Bug: 27313379
Change-Id: I0c0cffe7e1940914f0143714643ede539b86216f
2016-02-29 13:40:52 -08:00
Chris Craik
0066a01d7c Fix arc positioning
bug:27389290

Change-Id: I479a34ea079f1fce1c308aa809a57885ffa1d004
2016-02-29 13:34:44 -08:00
Chris Craik
261725fdb2 Fix matrix mapping of negative rects
bug:27381362

Also rejects ops with empty clip at record time, and short circuits clip
intersection, when one is empty.

Change-Id: I842612da14ad8fd9f1ba5e9e4fd027ba4e08d365
2016-02-29 13:10:25 -08:00
John Reck
db0fd9dfb2 Merge "Switch to pbuffer surface sooner" into nyc-dev 2016-02-26 23:53:47 +00:00
John Reck
a24b5d4811 Merge "Always swap buffers if using partial update extension" into nyc-dev 2016-02-26 23:53:23 +00:00
John Reck
fc736869ac Switch to pbuffer surface sooner
Bug: 27286867

If the system/app is slow, it might take too long to
stop drawing. Switch the ordering of destroying stuff so
that we switch to the pbuffer surface first, then do
cleanup

Change-Id: If64a3dbb71bb9fd53567231590436a89b2f1a09e
2016-02-26 15:43:09 -08:00
Chris Craik
83b28c0e67 Merge "Clip buffer damage to viewport bounds" into nyc-dev 2016-02-26 23:43:01 +00:00
Chris Craik
64db2bf111 Clip buffer damage to viewport bounds
bug:27287946

Change-Id: Ief3ae9c2dd92196b7d09f1b9fadf009eb228d80a
2016-02-26 15:01:25 -08:00
John Reck
c96955d9bb Always swap buffers if using partial update extension
Bug: 27379093
Change-Id: Ifda18287248e4ae07d4bf2ae9642a9d23039e81f
2016-02-26 14:58:13 -08:00