Commit Graph

10410 Commits

Author SHA1 Message Date
John Reck
fa93e3cefc Merge "Delete wrap_gles capability" 2019-05-31 20:48:01 +00:00
TreeHugger Robot
323d3cd5a5 Merge "Brought back compatibility check for falling back on dest_out whenever clear is used as a blend mode to draw bitmaps" 2019-05-30 22:24:24 +00:00
Jerome Gaillard
480618ffa5 Merge "Build native android graphics library for desktop" 2019-05-30 11:18:26 +00:00
Nader Jawad
f9f964d8d2 Brought back compatibility check for falling back on dest_out
whenever clear is used as a blend mode to draw bitmaps

Modified SkiaRecordingCanvas to call filterBitmap instead of
filterPaint in order to conduct the necessary compatibility checks
to use dest_out instead of clear whenever a bitmap is drawn

Test: In progress..
Bug: 131689368
Change-Id: I56d015e773b312cac948d850ca2997d8df0cc66d
2019-05-29 19:42:34 -07:00
John Reck
23462d88f5 Delete wrap_gles capability
* Error enforcement doesn't work with libhwui anymore
* We can just do the real, proper thing for unit tests
  & microbenchmarks, which is arguably better anyway
* hwui doesn't have much opengl code left that was wrapped

Fixes: 128629988
Test: hwuiunit, hwuimacro, and hwuimicro all still run
Change-Id: If2568ea0745a67f83e1290860d474c1a01870376
2019-05-29 16:55:06 -07:00
TreeHugger Robot
f6f3f0b023 Merge "Update LOG_WINDOW format params." 2019-05-29 19:33:24 +00:00
Jerome Gaillard
21e7e2d9b1 Build native android graphics library for desktop
The purpose of this is to be able to use the native graphics code from
the Android platform directly in Android Studio (running on desktop) to
do layout rendering.

This creates a host library that is a subset of libandroid_runtime
including only the JNI files relevant to Android graphics. It also
includes LayoutlibLoader.cpp which is used to load the JNI when using
it as part of layoutlib (the graphics library for Android Studio).

This also creates libhwui-host, a host library that is a subset of
libhwui.

Bug: 117921091
Test: lunch sdk && m libandroid_runtime
Change-Id: I3850020d2d4c13c85e377476bc463d3eb6a01c6d
2019-05-29 15:48:53 +01:00
Jerome Gaillard
a30e1b27f7 Merge "Use libbase API to access system properties in libhwui" 2019-05-29 10:55:44 +00:00
Gao Shuo
f5a6ff4ea0 Merge "Avoid fake high input latency while vsync drifting" am: 3996c9eb72 am: 151f38fe89 am: 0832ce87d7
am: 63d5b5d2e2

Change-Id: Ib18a1232ba4701e3f44cd07015fb6933668f9756
2019-05-28 15:22:42 -07:00
Gao Shuo
0832ce87d7 Merge "Avoid fake high input latency while vsync drifting" am: 3996c9eb72
am: 151f38fe89

Change-Id: Ida223a2af7a0669cf495bac8ccb8fa90414d159d
2019-05-28 14:58:09 -07:00
Jerome Gaillard
a02a12d765 Use libbase API to access system properties in libhwui
Calls to licutils properties API are replaced by calls to libbase
properties API. This will make it easier to make a host target for
libhwui as libbase provides a host implementation for its properties
API.

Bug: 117921091
Test: N/A
Change-Id: I15b4fe1a16d2bc7b271387d8cf3403940b8aae2d
2019-05-28 18:35:29 +01:00
Gao Shuo
7e05ff35fa Avoid fake high input latency while vsync drifting
Usually isTrippleBuffered should be true when mSwapDeadline bigger
than IntendedVsync. However, vsync could be drifting on some platforms,
which make isTrippleBuffered to be true and report a fake high input
latency.

So add a small threshold to avoid this case.

Test: Manually
Change-Id: Ib6ff1046cfb94f89f4985361b84ad2d34850f783
Signed-off-by: Gao Shuo <shuo.gao@intel.com>
Signed-off-by: Wu Zhongmin <zhongmin.wu@intel.com>
Signed-off-by: Zhu Tingting <tingting.zhu@intel.com>
2019-05-27 14:14:57 +08:00
John Reck
c01ff542a2 Merge "Log less" into qt-dev am: 7ede526835 am: b019513682
am: 480bf1fdc6

Change-Id: I917e32398ddf856ed038a84fbf996dc75a7aea7b
2019-05-24 19:15:07 -07:00
John Reck
e496882e8f Merge "Log less" into qt-dev
am: 7ede526835

Change-Id: I64811f0ee057b51446b2d1c1e9972631de1494a1
2019-05-24 17:17:29 -07:00
Daniel Santiago Rivera
4ca1cc9640 Update LOG_WINDOW format params.
Params of size_t use %zu formatting, while int64_t use PRId64. These
params had not been updated in a while since LOG_WINDOW is a no-op
macro when LOG_NDEBUG is off.

Test: Enable LOG_NDEBUG and do make
Change-Id: I59e9fa1aa343fd0a1da83c40fd24f3ef7bae5ed4
2019-05-24 16:36:55 -07:00
John Reck
480bf1fdc6 Merge "Log less" into qt-dev am: 7ede526835
am: b019513682

Change-Id: I7f9fb7c4af46b77115e10ccb21c6070a47dadf0b
2019-05-24 14:18:19 -07:00
TreeHugger Robot
7ede526835 Merge "Log less" into qt-dev 2019-05-24 20:48:31 +00:00
John Reck
db72e7aa8a Log less
These aren't really actionable logs by whatever
is producing them, so move to verbose

Bug: 131773342
Test: build
Change-Id: Icd020d889d83deae5dfd4aac3352bc9b1e1159bc
2019-05-23 14:41:32 -07:00
Stan Iliev
da7c19c6d6 Fix light center position for layers
SkiaLayer::inverseTransformInWindow should be the inverse
matrix of Layer transform. This CL fixes a bug, that matrix
value was not inverted.
This matrix is used in one place: to transform light
center coordinates from device to RenderNode/layer
coordinate space.

Bug: 132758858
Test: Ran test app attached to bug. Manually compared coordinates.
Change-Id: Id8e887276a5296091a8264d7a0b1bcc955620a6a
(cherry picked from commit 36b75f7961)
2019-05-23 17:03:22 +00:00
Joe Onorato
8b82c73770 Merge changes from topic "am-04c3ade2997f463f99e7d6e99506ddc2" into qt-r1-dev-plus-aosp
am: 8b584bda41

Change-Id: I5457d97385138a8a25ade8fb80988602e587c6b1
2019-05-23 04:10:01 -07:00
Derek Sollenberger
a538b561fb Merge "Fix fading edge effect from impacting neighboring pixels" into qt-dev
am: 9fdd35e9aa

Change-Id: Ia759b9218ee6dbb6b6fa4aea69526de0d7facd84
2019-05-22 16:10:05 -07:00
Stan Iliev
a316b91a01 Merge "Fix light center position for layers" into qt-dev
am: 0117a744e9

Change-Id: I26361d5b2390e5a2dd6d124102829441445c8ce0
2019-05-22 16:03:31 -07:00
TreeHugger Robot
9fdd35e9aa Merge "Fix fading edge effect from impacting neighboring pixels" into qt-dev 2019-05-22 21:32:59 +00:00
TreeHugger Robot
0117a744e9 Merge "Fix light center position for layers" into qt-dev 2019-05-22 21:22:42 +00:00
Stan Iliev
36b75f7961 Fix light center position for layers
SkiaLayer::inverseTransformInWindow should be the inverse
matrix of Layer transform. This CL fixes a bug, that matrix
value was not inverted.
This matrix is used in one place: to transform light
center coordinates from device to RenderNode/layer
coordinate space.

Bug: 132758858
Test: Ran test app attached to bug. Manually compared coordinates.
Change-Id: Id8e887276a5296091a8264d7a0b1bcc955620a6a
2019-05-22 14:43:44 -04:00
Joe Onorato
efc91a1b88 Add ProtoOutputStream.serializeToVector am: dcd64522f4
am: de7a0a3362

Change-Id: I7149c9f84bfe4c5b7e3af53a095c741d0cdde867
2019-05-22 06:21:17 -07:00
Joe Onorato
25ff22df82 Add ProtoOutputStream.serializeToVector
am: dcd64522f4

Change-Id: I5ae822b0f3834f16f7722403e4dd481a5f301f98
2019-05-22 02:17:56 -07:00
Joe Onorato
de7a0a3362 Add ProtoOutputStream.serializeToVector
am: dcd64522f4

Change-Id: If42f8570731e96c820267ae19ad3afea918bdb2b
2019-05-21 22:51:37 -07:00
Joe Onorato
f581d1b92f Merge changes from topic "b_132890298" into qt-dev
* changes:
  Fix lookup of incident section by name to not crash.
  Add command line utilites to set the reason field in incident report header
  Add ProtoOutputStream.serializeToVector
2019-05-22 03:16:44 +00:00
Eric Holk
64bd7c068c Merge "Remove obtainStyledAttribute and AssetManager2::GetBag tracing" into qt-dev
am: bdc1ba53ef

Change-Id: I664783b86275e5a6513c1d464aa0bc7d12829ad0
2019-05-21 14:36:36 -07:00
Joe Onorato
dcd64522f4 Add ProtoOutputStream.serializeToVector
Bug: 132890298
Test: bit libprotoutil_test:*
Change-Id: I44bbeea9c487e0142bcd5f18562f5a092e8b6306
2019-05-21 13:29:23 -07:00
Eric Holk
4487398e0d Remove obtainStyledAttribute and AssetManager2::GetBag tracing
These traces are small and noisy, so they hurt performance more than they help.

This reverts commit c37457799b.

Test: m
Bug: 132721345
Change-Id: I9ef719f54f2bc8a54f23e88f46d74e35417a6519
(cherry picked from commit 3509b624fe)
2019-05-21 00:31:03 +00:00
Eric Holk
3509b624fe Remove obtainStyledAttribute and AssetManager2::GetBag tracing
These traces are small and noisy, so they hurt performance more than they help.

This reverts commit c37457799b.

Test: m
Bug: 132721345
Change-Id: I9ef719f54f2bc8a54f23e88f46d74e35417a6519
2019-05-20 15:27:28 -07:00
Greg Daniel
9f3966356b Merge "Make sure we don't delete VkSemaphores before exporting in VulkanManager" 2019-05-18 12:30:48 +00:00
Derek Sollenberger
9d25cc242f Fix fading edge effect from impacting neighboring pixels
Bug: 132354626
Bug: 129117085
Test: skia unit tests and test cases described in the bug
Change-Id: Ieaa7c831dd6298ac0565e6f1837b1c1dbd4545da
(cherry picked from commit ac33a48751)
2019-05-17 17:59:57 +00:00
Joe Onorato
c0db501273 Merge "Merge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase" into qt-dev am: e229a5b70b am: 61c4bc8917" into qt-r1-dev-plus-aosp
am: d04e28ef03

Change-Id: I63be90f8de9b6ccf9c39893fccdeb8f26e4a6269
2019-05-17 05:56:45 -07:00
Joe Onorato
9b85c063fa Merge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase" into qt-dev am: e229a5b70b
am: 61c4bc8917

Change-Id: Ie9de82c6d15f742088dab59ba1d4de3f69b84a70
2019-05-16 12:58:33 -07:00
Miguel de Dios
9c78c04638 Merge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev am: 515e7a7464 am: 0540fce354
am: 605e1e66b1

Change-Id: Ic507829c9979ed1350e99f09af685261b1ea2728
2019-05-16 12:20:59 -07:00
Joe Onorato
6db19da5fd Merge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase" into qt-dev
am: e229a5b70b

Change-Id: Ia72b2d75a29d42b086bd830c03094aa0d9b3746e
2019-05-16 12:17:01 -07:00
Tej Singh
5c801e4169 Merge "Persist active metric status across system server" into qt-dev am: 7ee86cdb65 am: ba7ec1deab
am: be3b1c4062

Change-Id: I6753d7200e4b48faeb6852367f2a169b6d83bfd4
2019-05-16 12:05:47 -07:00
Miguel de Dios
0540fce354 Merge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev
am: 515e7a7464

Change-Id: Ie96ad45b9cbeeb5c77282a4e5e0b696ea157da8d
2019-05-15 22:53:22 -07:00
Tej Singh
ba7ec1deab Merge "Persist active metric status across system server" into qt-dev
am: 7ee86cdb65

Change-Id: I975e5afab61077f13c41921883527706e614c2fd
2019-05-15 22:44:52 -07:00
Joe Onorato
05270525ee Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase
Test: bit libprotoutil_test:*
Bug: 129717537
Change-Id: I44cf2e631a5ac1bb8b4ee2c269cfc50438fb1782
2019-05-16 00:51:18 +00:00
Miguel de Dios
515e7a7464 Merge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev 2019-05-15 21:06:07 +00:00
TreeHugger Robot
7ee86cdb65 Merge "Persist active metric status across system server" into qt-dev 2019-05-15 20:45:31 +00:00
Greg Daniel
fd4293962c Make sure we don't delete VkSemaphores before exporting in VulkanManager
Test: Manual building and testing on device to confirm error messages
are gone.

Bug: b/132358913
Change-Id: I0e22df5eb3bc61a7dd84d87db9a4f67756ecd5ae
2019-05-15 14:19:16 -04:00
Miguel de Dios
509627ba33 Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"
This reverts commit f802abe47f.

Reason for revert: We're seeing jank increase after this patch.

Change-Id: Ic8d77df3fbbeeedeed4b8f31737454d9c056f8b0
Bug: 132733305
2019-05-14 23:56:21 +00:00
Greg Daniel
2ef581e5da Merge "Remove workaround in VulkanSurface for missing vendor flag." into qt-dev am: 13a31b2648
am: 53fb04928b

Change-Id: Id91b5a5101c1b502bb4d37653117b3e9cb75508f
2019-05-14 15:04:43 -07:00
Greg Daniel
53fb04928b Merge "Remove workaround in VulkanSurface for missing vendor flag." into qt-dev
am: 13a31b2648

Change-Id: I338ac7ee12ee4d17859e7ee8ae1d9f83531d84e4
2019-05-14 14:47:34 -07:00
Greg Daniel
13a31b2648 Merge "Remove workaround in VulkanSurface for missing vendor flag." into qt-dev 2019-05-14 21:32:29 +00:00