Commit Graph

9661 Commits

Author SHA1 Message Date
Stan Iliev
5d03348436 Fix path rendering issues
Fix remaining battery icon. Disable CCPR, which seems to
have caused a regression.


Test: Ran SystemUI and battery icon is drawn white.
Bug: skbug.com/8127
Change-Id: Ic82bce14b760a8889ea2261c44b2631dc755288f
2018-07-03 19:50:06 +00:00
Stan Iliev
02daab6ff2 Add a debug property to enable Skia systrace
Add a "debug.hwui.skia_atrace_enabled" property that allows to
record a systrace with skia drawing ops. App need to be restarted
after setting the new propety to true.

Test: collected skia trace with systemui
Change-Id: I2d1c5911714bfc911894f633ec2df2f6bb953b48
2018-07-02 13:45:53 +00:00
Sundong Ahn
faa0516e0b Merge "Build com.android.future.usb.accessory with java_sdk_library" am: 10cfc61774 am: 35d6bafc57
am: 3be9f7072a

Change-Id: I737cd14d3af988abde8c60d061d1c3526ad40749
2018-06-28 21:12:16 -07:00
Sundong Ahn
3be9f7072a Merge "Build com.android.future.usb.accessory with java_sdk_library" am: 10cfc61774
am: 35d6bafc57

Change-Id: I205f0f1811b68aa41d105fbd8db24db52ae2d35e
2018-06-28 20:53:52 -07:00
Sundong Ahn
35d6bafc57 Merge "Build com.android.future.usb.accessory with java_sdk_library"
am: 10cfc61774

Change-Id: Ie6abdaa1c9f58ada60da5514bbd1ed261d09fd0b
2018-06-28 20:38:09 -07:00
Treehugger Robot
10cfc61774 Merge "Build com.android.future.usb.accessory with java_sdk_library" 2018-06-29 02:51:43 +00:00
Josh Gao
1c300861d2 Fix memory leak in RenderThread::dumpGraphicsMemory.
This would have been a double-close of fd, except we just leak the
FILE* instead.

Test: treehugger
Change-Id: I519366fbcf0eb6f03f79c22abfa2b1b1b493a70a
2018-06-26 12:37:42 -07:00
Stan Iliev
da3fb57d52 Merge "Don't apply filter in readback, when there is no scaling" into pi-dev am: cea247e135
am: a69eae92c7

Change-Id: Ifa0e178e5c59780461f083d3527594ebe78c50c8
2018-06-25 16:43:38 -07:00
Stan Iliev
a69eae92c7 Merge "Don't apply filter in readback, when there is no scaling" into pi-dev
am: cea247e135

Change-Id: Ibfcc41e052376d159886410d11130bb89ade168d
2018-06-25 16:33:36 -07:00
Stan Iliev
d50edd004b Don't apply filter in readback, when there is no scaling
Fix check for scaling in SkiaOpenGLReadback: old code was not
taking into account that matrix rotation swaps width/height.

Test: Passed PixelCopyTest#testWindowProducerCopyToRGBA16F
Bug: 110097060
Change-Id: I0d26416fa72a026bc376417773d5a73548b1f1a5
2018-06-22 17:33:43 -04:00
Greg Daniel
2f9d8670e3 Remove unused member in VulkanManager.
A large part of the previous change was specifically around removing
this ref counted data member, and then I just forgot to delete it...

Test: manual testing

Change-Id: Ie9a7f7495789d45a65900c08a27a9d83ad64617c
2018-06-22 11:46:18 -04:00
Greg Daniel
841f7c2f0c Merge "Manually create and manage vulkan instance and device." 2018-06-22 13:27:12 +00:00
zhangkuili
b92c853845 Merge "[Stability][hwui] check mmap return value" am: b352dcd153 am: 399ac24bdf
am: 4fe18f31d5

Change-Id: Id8e6045310f3b480649dbe097f60da2a293603d4
2018-06-21 15:37:01 -07:00
zhangkuili
399ac24bdf Merge "[Stability][hwui] check mmap return value"
am: b352dcd153

Change-Id: I8d04c5433ca881e62a23e0aa13e022cdf8d16d9a
2018-06-21 14:53:15 -07:00
Greg Daniel
2ff20271a4 Manually create and manage vulkan instance and device.
Previously we were using a helper in Skia but that is being deleted
and we must manage it ourselves in android.

Test: manual building and running.
Change-Id: Ia3455507d7b07a4a2f29fd5453408dd37d9d570b
2018-06-21 15:07:41 -04:00
zhangkuili
24a1bc39bb [Stability][hwui] check mmap return value
If mmap failed, it return -1 (MAP_FAILED)

Bug:110507462
Test: manual

Change-Id: I3d0bac2e7c8b0bdc9cfb4ebb7b766d858876679d
Signed-off-by: zhangkuili <zhangkuili@xiaomi.com>
2018-06-21 17:43:10 +08:00
Romain Guy
0e6f553743 Fix PixelCopyTest failure in CTS
This feature needs support for renderable float textures, but the checks
were only guaranteeing support for float texture reads.

Bug: 68754504
Test: CtsViewTestCases

Change-Id: I0ce4a81cb8e09c10a5f1e65234685767a24ef8c4
Merged-In: I0ce4a81cb8e09c10a5f1e65234685767a24ef8c4
(cherry picked from commit 8472ac67fd)
(cherry picked from commit 8dc7f8275e5ba9004d219d7d7d990e91fc702095)
2018-06-20 22:52:35 +00:00
Stan Iliev
54d7032b78 Restore matrix transform for out-of-order render nodes
Restore matrix for render nodes, which are drawn out of order.

Test: DrawChildBug-debug.apk draws correctly, new test ag/4355529
Bug: 80173852
Change-Id: I3f789a7cf0ee5816da84255199b265643f95af1c
2018-06-19 13:41:15 +00:00
Sundong Ahn
9794d2a5b9 Build com.android.future.usb.accessory with java_sdk_library
com.android.future.usb.accessory is built with java_sdk_library and api
files are added by running "make update-api".

Bug:77577799
Test: make -j
Test: make checkapi
Test: adb shell cmd package list libraries |\
      grep com.android.future.usb.accessory
      And check the com.android.future.usb.accessory library

Change-Id: I21c635c06ab809b3d1b34b2a8de055fa20d9b066
2018-06-19 10:22:30 +09:00
TreeHugger Robot
859df82843 Merge "Treating all FileSection files as device specific." 2018-06-14 17:37:29 +00:00
Kweku Adams
e04ef777c1 Treating all FileSection files as device specific.
Arc++ devices don't have the /d/wakeup_sources file. There's a chance
other device won't have it either, and there may be other files that we
thought were standard but are actually not, so it's safer to just assume
that not every file will be available on every device and not treat a
missing file as an error.

Bug: 110109543
Test: atest incidentd_test
Change-Id: Ief09427f08d18aee611d057ddafdb9a3466744db
2018-06-13 12:46:12 -07:00
Neil Fuller
7dbefdcb92 resolve merge conflicts of 26119befba to pi-dev-plus-aosp
BUG: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Iea64af5a88c9bf399fb26468e931be3c73061bac
2018-06-07 20:02:59 +01:00
Ryan Mitchell
426f8d2db8 Merge "Fix DynamicRefTable::load security bug" into oc-mr1-dev am: 2b6805fedc am: 5ae85666ac
am: 6899839e07

Change-Id: I3920ae30c0fdd5ef5b1176476d769abb269d5844
2018-06-06 16:43:03 -07:00
Ryan Mitchell
6899839e07 Merge "Fix DynamicRefTable::load security bug" into oc-mr1-dev am: 2b6805fedc
am: 5ae85666ac

Change-Id: I64521a290482adb5ade95b641ce9c0c27031a814
2018-06-06 16:09:35 -07:00
Ryan Mitchell
5ae85666ac Merge "Fix DynamicRefTable::load security bug" into oc-mr1-dev
am: 2b6805fedc

Change-Id: I5ef0a789b16dc8aa0936d8fcca3917ce2f884d74
2018-06-06 15:50:57 -07:00
Neil Fuller
d2f29d7a6f Remove CommonClock / CommonTimeManagementService
The service and associated code is unused.

Bug: 80462439
Test: build / boot
Merged-In: Ibdfab1b7d2951a0c45e07bd47850af037990841b
Change-Id: Ibdfab1b7d2951a0c45e07bd47850af037990841b
2018-06-06 17:03:55 +01:00
Neil Fuller
7bb9fcbc45 Merge "Remove CommonClock / CommonTimeManagementService" 2018-06-06 15:59:44 +00:00
Ryan Mitchell
18a6ada4aa Fix DynamicRefTable::load security bug
DynamicRefTables parsed from apks are missing bounds checks that prevent
buffer overflows. This changes verifies the bounds of the header before
attempting to preform operations on the chunk.

Bug: 79488511
Test: run cts -m CtsAppSecurityHostTestCases \
        -t android.appsecurity.cts.CorruptApkTests

Change-Id: I02c8ad957da244fce777ac68a482e4e8fa70f846
Merged-In: I02c8ad957da244fce777ac68a482e4e8fa70f846
2018-06-05 22:05:11 +00:00
Yu Jia
c4d7698190 Merge "cts case com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in modue CtsIncidentHostTestCases failed" am: 2dd3d8cbef am: d490e788f1
am: 048c6751d7

Change-Id: I89d6290789324a38a28de5e03bd139e450297b23
2018-06-04 19:52:48 -07:00
Yu Jia
048c6751d7 Merge "cts case com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in modue CtsIncidentHostTestCases failed" am: 2dd3d8cbef
am: d490e788f1

Change-Id: I6e3507cfb5b6501dd28fb2b6019fdbb74fb745f0
2018-06-04 19:42:29 -07:00
Neil Fuller
ea8a738581 Remove CommonClock / CommonTimeManagementService
The service and associated code is unused.

Bug: 80462439
Test: build / boot
Change-Id: Ibdfab1b7d2951a0c45e07bd47850af037990841b
2018-06-04 19:26:29 +01:00
John Reck
8b3480c667 Merge "Attempting to fix the black flicker" into pi-dev
am: b559512508

Change-Id: I95ee7346a8d2f10c07185d3c386a7ee778f6bd98
2018-06-01 04:31:50 -07:00
Derek Sollenberger
fe1c990a57 Merge "Bind correct FBO when drawing a WebView into a layer." into pi-dev
am: 6a1df0d541

Change-Id: Idd4a3432df50e502a84747d240a1940bf3cb6b8c
2018-05-31 20:51:45 -07:00
John Reck
b559512508 Merge "Attempting to fix the black flicker" into pi-dev 2018-06-01 03:05:51 +00:00
Derek Sollenberger
0fba15b2ba Bind correct FBO when drawing a WebView into a layer.
The WebView was unable to draw into either a standard clipped
layer or the "fading edges" unclipped layer. This CL and its
companion test cases ensure that both work with simple and
complex clips.

Bug: 79619253
Bug: 80443556
Bug: 80477645
Test: atest CtsUiRenderingTestCases:.LayerTests
Merged-In: I0e16b724f74415a61cc2a841ccf4a491f293ac94
Change-Id: I4900222975fc841b11828916878fb0ea6d87dcda
2018-06-01 01:08:15 +00:00
TreeHugger Robot
98b80379fe Merge "Attempting to fix the black flicker" 2018-05-31 23:19:51 +00:00
TreeHugger Robot
dd309ea63a Merge "Bind correct FBO when drawing a WebView into a layer." 2018-05-31 21:21:52 +00:00
John Reck
5b02c629bd Attempting to fix the black flicker
Bug: 79231206
Test: Repro steps from bug

Merged-In: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6
Change-Id: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6
2018-05-31 12:56:28 -07:00
John Reck
cc2eee89c8 Attempting to fix the black flicker
Bug: 79231206
Test: Repro steps from bug

Change-Id: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6
2018-05-31 19:55:54 +00:00
Derek Sollenberger
02456f0ce1 Bind correct FBO when drawing a WebView into a layer.
The WebView was unable to draw into either a standard clipped
layer or the "fading edges" unclipped layer. This CL and its
companion test cases ensure that both work with simple and
complex clips.

Bug: 79619253
Bug: 80443556
Bug: 80477645
Test: atest CtsUiRenderingTestCases:.LayerTests
Change-Id: I0e16b724f74415a61cc2a841ccf4a491f293ac94
2018-05-31 15:55:13 -04:00
TreeHugger Robot
3795062f23 Merge "Protect usage data with OP_GET_USAGE_STATS." 2018-05-31 19:21:14 +00:00
John Reck
14e1c54fa3 Merge "Remove dead code" 2018-05-31 16:48:08 +00:00
John Reck
e4c1e6c5a1 Remove dead code
Test: builds
Change-Id: I57cf72ca460115463d7759097d5ba598b5ec1775
2018-05-30 16:40:07 -07:00
Yu Jia
e57493ab19 cts case
com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in
modue CtsIncidentHostTestCases failed

This cts case design 20 frames, every 4 frames include 700ms frame and
150ms frame

When activity launched, first 3 frames need allocate buffer during
dequeue buffer, bug some low-end platform took too long (>6ms), so
it will skip the fourth frame(150ms) and post a new draw callback that will cause cts failed
2018-05-30 13:34:19 +08:00
Ben Wagner
9f1730c4b9 Merge "Update sk_sp use for explicit." 2018-05-29 21:02:08 +00:00
Ben Wagner
6b62ac0a32 Update sk_sp use for explicit.
Skia's sk_sp class is moving from operator pointer to field to
explicit operator bool. As a result a few uses need to be updated.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: I97ca0647c7c490554da7dd626c99b3447d7cbc84
2018-05-29 14:17:08 -04:00
Seigo Nonaka
0ca492fb4d Follow minikin header structure changes
Bug: N/A
Test: minikin_tests
Test: hwui_unit_tests
Change-Id: I2e3fd1a549fe3e9703d2ef93d03a5923005d4caa
2018-05-25 14:52:22 -07:00
Stan Iliev
511216f030 Merge "Make sure frame buffer 0 is bound before calling GL functor" into pi-dev am: a2cc38e7fb
am: 8deb6ac7cd

Change-Id: Icc245a07ca723cce71263002a2e613f7c52f227d
2018-05-24 10:36:40 -07:00
Stan Iliev
8deb6ac7cd Merge "Make sure frame buffer 0 is bound before calling GL functor" into pi-dev
am: a2cc38e7fb

Change-Id: Iedbd9549e754bb2884f447e3d964b9601e9161e5
2018-05-23 18:36:42 -07:00
TreeHugger Robot
a2cc38e7fb Merge "Make sure frame buffer 0 is bound before calling GL functor" into pi-dev 2018-05-23 22:14:21 +00:00