John Reck
b365b0db93
Merge "Re-unite sources with their headers" am: e43444a00b
...
am: 946d11d216
Change-Id: Ib9fac5fff2f2ce90eebc2c6eb5208de33ea28723
2016-11-04 21:52:43 +00:00
John Reck
946d11d216
Merge "Re-unite sources with their headers"
...
am: e43444a00b
Change-Id: I8f3ef6a1ddcf78d28f7444b6e83c552b8305fd8c
2016-11-04 21:47:34 +00:00
John Reck
03b5d506bc
Re-unite sources with their headers
...
Move all the includes for androidfw under
a common base path for that library instead
of frameworks/base/includes.
Also fixes -Werror issues that resulted in
no longer being -isystem.
Test: builds
Change-Id: Ic4312eb61b197af114dded5691d5ae1ec82923f7
Merged-In: Ic4312eb61b197af114dded5691d5ae1ec82923f7
(cherry picked from commit f6113af2d6f6eebee68d3ac510fe96d38a7a39e9)
2016-11-04 13:27:37 -07:00
Mark Salyzyn
6e60ab12e7
Merge "missing includes" am: 78929f3ee0
...
am: 6a8f0d70b0
Change-Id: I40ff974f4333aaa714a63d5436b822491b9d78d6
2016-10-17 21:31:35 +00:00
Mark Salyzyn
6a8f0d70b0
Merge "missing includes"
...
am: 78929f3ee0
Change-Id: I3e7a25ded484d516fab453abe434c2e53cf0f27e
2016-10-17 21:25:59 +00:00
Chris Craik
dfe4a1b6ee
Fix complex clipping on mergeable ops DO NOT MERGE am: d183e0b988
...
am: a6bfd8d12c
Change-Id: I5af8d0fac1e47e7bf831ca2f387fe550acf4165c
2016-10-17 19:59:32 +00:00
Mark Salyzyn
4d6c372eae
missing includes
...
Assumptions are made about header side effects
Test: compile
Bug: 30465923
Change-Id: Icc9415aed5e54b2bc00b70aa0da6df4148f30654
2016-10-17 12:32:54 -07:00
Chris Craik
d183e0b988
Fix complex clipping on mergeable ops DO NOT MERGE
...
Fixes: 32106003
Change-Id: I519bc38a1fa8c25c9ae317ffdb7e59e5a0824f59
2016-10-17 10:51:11 -07:00
Doris Liu
1ef744a3b8
Fix SkShader leak for Gradient VectorDrawable and test am: fc9cf72339
...
am: c47199bb6a
Change-Id: I261f8f3708f526c15ae93c51d24bdaee054354f6
2016-10-12 21:03:14 +00:00
Doris Liu
fc9cf72339
Fix SkShader leak for Gradient VectorDrawable and test
...
This CL fixes a SkShader leak in VD when applying local matrix
to the shader. Specifically, the usage of newWithLocalMatrix(...)
increments the shader's ref count in every draw() call for
Gradient VectorDrawable, whereas there's no balancing call to
decrement the ref count in draw(). In this CL, we assume
the ownership of the shader returned from newWithLocalMatrix(...)
to ensure the correct ref count management.
Also, add test to verify that shader is no longer being leaked
BUG: 32067647
Test: this CL
Change-Id: Ic15fe46cde06a73d81b44e2d3c56b51907344cc0
2016-10-12 01:22:11 +00:00
sergeyv
e830f351e1
Turn off additional logging in text rendering am: 5bb5626599
...
am: 4778f6a43e
Change-Id: If031a1d480d8c2e75e9f6268d15c8ccc098a0268
2016-10-11 00:54:34 +00:00
John Reck
85ddb2df2f
Fix SurfaceViewPositionListener race bugs
...
Bug: 29628138
1: Make windowPositionLost synchronous as that's
what the Java side was expecting
2: Make the listener ref counted as otherwise
there's a race condition with the GC, which could
end up with use-after-frees
3: Ensure that all position updates are invoked
prior to frame completion
Change-Id: Iedbc017f611ba2878a49b4586612f79249ca2fe3
(cherry picked from commit 7b570deea65bc7ac417a26ce3e4103bcef30e957)
2016-10-10 13:36:36 -07:00
sergeyv
5bb5626599
Turn off additional logging in text rendering
...
Change-Id: If5f11489c05e320e4436fb57680857b29228a755
b:30427106
2016-10-10 12:25:06 -07:00
Doris Liu
5ef10f1d26
Support calling start() in onAnimationFinished(...) in AVD am: 679fe6ab6f
...
am: 4a1ea9ba7e
Change-Id: If343048fcbe8e2af46b6cdfcd5953c0d5ffa6c4e
2016-10-08 23:56:52 +00:00
Doris Liu
679fe6ab6f
Support calling start() in onAnimationFinished(...) in AVD
...
This CL fixed an issue where calling start() from onAnimationFinished()
caused AnimationListenerBridge::onAnimationFinished(...) to be unsafely
re-entered and the new start listener was (incorrectly) reset to null.
BUG: 31971397
Test: test apk in the bug linked above
Change-Id: Ica809ef2dab884950b93b54f2d0cb4b81e9830f1
2016-10-08 21:00:14 +00:00
Teng-Hui Zhu
6ff1730df5
Make umbra lighter when the blocker is too high and has no real umbra area. am: 9c555566bf
...
am: 9ad599930d
Change-Id: I930f1ea0a3620bfdb87e703bbdf927cdde7b809a
2016-10-06 21:37:17 +00:00
Teng-Hui Zhu
9c555566bf
Make umbra lighter when the blocker is too high and has no real umbra area.
...
b/31939390
Test: CTS testShadowLayout && Manual FrameworkShadow test
Change-Id: Ib0b6c4239ac8a521a827be246e912daf2ad3b885
2016-10-04 17:26:09 -07:00
ryang
44df10ebf7
Merge "hwui: Fix the length of partial updates system property" am: faf945a773 am: 73f2e9b812
...
am: 3734e98095
Change-Id: I88c1092a7fcce45d80bb2f5cd7d14b25e0660f40
2016-09-28 17:10:58 +00:00
ryang
3734e98095
Merge "hwui: Fix the length of partial updates system property" am: faf945a773
...
am: 73f2e9b812
Change-Id: Ibcc55a59fd29614e491843a0dbbcfd316f423312
2016-09-28 17:04:26 +00:00
ryang
647bc13709
hwui: Fix the length of partial updates system property
...
The maximum length of a system property is 31 bytes.
debug.hwui.enable_partial_updates is 33 bytes
Change-Id: Idb1b1a00294dd29f84530e8aee1f685094d0096f
2016-09-26 16:05:06 -04:00
Yuqian Li
49d49fafb8
Ignore HasAlphaLayer flag to fix b/30929229 am: 83427ff222
...
am: df6b413b63
Change-Id: I994233a48472cd2d11acaa30673504b8589bc303
2016-09-15 14:02:15 +00:00
Yuqian Li
83427ff222
Ignore HasAlphaLayer flag to fix b/30929229
...
BUG:30929229
Change-Id: Iebadc6b3d224efa0554cbbb99ea43f871c28722b
2016-09-14 11:44:10 -04:00
sergeyv
0ec2fd7bc5
HWUI: track upload & recent usage in font cache am: af102bee51
...
am: 42c01cf62f
Change-Id: Ieb80108d520aa629c54a40d7c533bf74a71849c4
2016-09-13 02:01:28 +00:00
sergeyv
ee6aca55bd
HWUI: calculate used memory in FontCache for gfxinfo am: baf29e7cf4
...
am: c60abfb739
Change-Id: I3f8202348a97c69d080b69329b23e388aec06f17
2016-09-13 01:59:39 +00:00
sergeyv
af102bee51
HWUI: track upload & recent usage in font cache
...
FontCacheHistoryTracker should be turned off before shipping: b/31438876
bug:30427106
Change-Id: Ic26b25e790d4ee69e484ca0cb23dc9cc522b2ed3
2016-09-12 15:45:26 -07:00
sergeyv
baf29e7cf4
HWUI: calculate used memory in FontCache for gfxinfo
...
bug:30427106
Change-Id: I653571d6a4e974e975fb0dc03fc2364eecbf2f84
2016-09-08 14:50:50 -07:00
John Reck
adde639da2
Fix EGLImage memory leak am: f8b0360298
...
am: 8714e02f6f
Change-Id: Ieaaaf8110cf48345d661389ef189454f3e3886dc
2016-09-02 17:53:50 +00:00
Chris Craik
b53c60876a
Wait on frame work fences when frames are dropped am: 06e2e9cf4c
...
am: 7a14f5aeb9
Change-Id: I9f2159f2f5c8111df0c14e46cc5690cbfab9b7e9
2016-09-02 17:41:57 +00:00
John Reck
8714e02f6f
Fix EGLImage memory leak
...
am: f8b0360298
Change-Id: Ibf8adad1b0fc66fe9de2bbd86d14b67ffe73efd0
2016-09-02 15:15:13 +00:00
John Reck
02913603bd
Merge "Fix EGLImage memory leak" into nyc-mr1-dev
2016-09-02 15:07:25 +00:00
John Reck
f8b0360298
Fix EGLImage memory leak
...
Bug: 31247709
Change-Id: I9e36206b0d7bdb75b84cd53b70f7746ca34a3469
2016-09-01 14:10:20 -07:00
Chris Craik
06e2e9cf4c
Wait on frame work fences when frames are dropped
...
bug:30895941
Prevents a race where frame work could interleave between frames,
causing SurfaceView position updates to be delivered out of order.
Change-Id: I01e4cc557b69dcf33e877a0e16c0d115ec95e4cc
2016-08-31 17:32:47 -07:00
Chih-hung Hsieh
1f50f80aab
Merge "Fix google-explicit-constructor warnings in libs/hwui." am: 7207562ff7 am: d7a69e04eb
...
am: 842f1e48e7
Change-Id: I401bb7ef3a46bb317ba664667fab4a16c129e5aa
2016-08-31 17:43:44 +00:00
Chih-hung Hsieh
842f1e48e7
Merge "Fix google-explicit-constructor warnings in libs/hwui." am: 7207562ff7
...
am: d7a69e04eb
Change-Id: I78ea5c2e7036c5d5c7f5573b4eef208b0ff93b99
2016-08-31 17:39:44 +00:00
Chih-Hung Hsieh
a619ec70cf
Fix google-explicit-constructor warnings in libs/hwui.
...
* Add explicit keyword to conversion constructors,
or add NOLINT for implicit converters.
Bug: 28341362
Test: build with WITH_TIDY=1
Change-Id: Id8ca42433a4fc3652e4cb13787c4cb169f20d9a9
2016-08-29 14:56:58 -07:00
Chih-Hung Hsieh
4529b6300e
Merge "Fix misc-macro-parentheses warnings in hwui/tests." am: e2732e5e38 am: e33f3472f3
...
am: 007c463e64
Change-Id: Idb404e8f99289a1492d7d3f1af938cf5c0f1c7f0
2016-08-27 00:08:36 +00:00
Chih-Hung Hsieh
007c463e64
Merge "Fix misc-macro-parentheses warnings in hwui/tests." am: e2732e5e38
...
am: e33f3472f3
Change-Id: I4601d7072c16322b70de9620a6bbaa41772d612b
2016-08-27 00:01:59 +00:00
Chih-Hung Hsieh
474081eee1
Fix misc-macro-parentheses warnings in hwui/tests.
...
* Add parentheses around macro parameters.
Bug: 28705665
Test: build with WITH_TIDY=1
Change-Id: I04f6dd1a180ed1191bf68b685facf6fb9020b4b0
2016-08-26 15:19:47 -07:00
John Reck
e986be325c
resolve merge conflicts of 24e38ab to stage-aosp-master am: 621fb590e3
...
am: f929ef6cbd
Change-Id: Ie7d5ff6858f95cf7725fa12df8d33420bc3954b2
2016-08-23 23:08:32 +00:00
John Reck
f929ef6cbd
resolve merge conflicts of 24e38ab to stage-aosp-master
...
am: 621fb590e3
Change-Id: Ia1b617a13012a8d475feb91bfbabb6ace264a29e
2016-08-23 22:56:52 +00:00
John Reck
621fb590e3
resolve merge conflicts of 24e38ab to stage-aosp-master
...
Change-Id: I02db3eb317ccb182b563ec9350a116bd5de063b6
2016-08-23 15:10:47 -07:00
John Reck
24e38ab322
Merge "Fix native memory leak caused by small HWUI path cache creation"
2016-08-22 21:48:31 +00:00
caiqinl
4b505376cb
Fix native memory leak caused by small HWUI path cache creation
...
HWUI calculates the texture size as w*h*bpp. In some cases, the
calculated path cache is small, but the actual memory allocated
in driver is 4k/8k/16k, much bigger than HWUI calculates.
Example: a 5*65 alpha texture, HWUI think it is 5*65*1 = 325 bytes,
but driver allocates 8K. An app can allocates up to 32M path textures,
which actually consumes 32M*(8*1024/325) = 806M memory.
Here we limit the number of path texture in the cache to 256, it
should be a pretty generous global limit.
Change-Id: I890819b73bb0b7f63e96bc3d9d0ff9469c16838c
2016-08-22 11:22:43 +05:30
Chih-Hung Hsieh
56996ff61e
resolve merge conflicts of 76ce8e5 to stage-aosp-master am: ed935c32f4
...
am: ef57a0d629
Change-Id: Ifcc24ad835f2e74a25954bf3fd7090c75abdc084
2016-08-12 00:40:25 +00:00
Chih-Hung Hsieh
ef57a0d629
resolve merge conflicts of 76ce8e5 to stage-aosp-master
...
am: ed935c32f4
Change-Id: Ibb7415686469d7b15e8dbe0cd04226c4e0cd7d76
2016-08-12 00:31:29 +00:00
Chih-Hung Hsieh
ed935c32f4
resolve merge conflicts of 76ce8e5 to stage-aosp-master
...
Change-Id: I4b4ca9906373a95776d2da8ba2fa39a4a78e2a30
2016-08-11 16:48:46 -07:00
Treehugger Robot
76ce8e5242
Merge "Fix clang-tidy warnings in libs/hwui."
2016-08-11 23:20:47 +00:00
Chih-Hung Hsieh
f35c939cd7
Fix clang-tidy warnings in libs/hwui.
...
* Add explicit keyword to conversion constructors.
Bug: 28341362
* Use const reference type for read-only parameters.
Bug: 30407689
Test: build with WITH_TIDY=1
Change-Id: Iab3e6636f60a70cb124f29dc19f20f842fa8dfda
Merged-In: Iab3e6636f60a70cb124f29dc19f20f842fa8dfda
2016-08-10 23:26:59 +00:00
John Reck
1d7ee6b5a3
Make updateSurface non-blocking am: cd68212f08
...
am: 9dd91dec3f
Change-Id: I8a27b5bcff0781e90c9d061da0c1fe03eb6d8176
2016-08-10 17:44:40 +00:00
John Reck
cd68212f08
Make updateSurface non-blocking
...
Bug: 30442298
We already do this for initialize(), fix
it so that update() is parallel with the
UI thread as well.
Shaves ~7ms off of the 99th percentile on
NotificationShade open & close
Change-Id: I1791df495453fb9e1e12362c68e3d20e837e62be
2016-08-09 12:11:13 -07:00