Commit Graph

10353 Commits

Author SHA1 Message Date
Treehugger Robot
f7cf0dfa55 Merge "[frameworks][base][hwui] fix -Wimplicit-int-float-conversion" 2019-10-16 03:48:23 +00:00
Pirama Arumuga Nainar
c1610d3c95 [hwui] Remove -Wno-missing-braces
The Clang bug that caused this silencing has been fixed for a while.

Test: mmma frameworks/base/libs/hwui
Change-Id: Ia03f7c223f95a51fbda70dbbbabf4821eaef74ca
2019-10-14 10:52:54 -07:00
Yi Kong
304d4bd65d Disable the new pass manager for libhwui
Clang is producing non-deterministic result when the new pass manager is
enabled.  Turn it off as a temporary workaround.

Test: presubmit
Bug: 142372146
Change-Id: Ie21d97c0fe6770b0ae9ec103133b940b1eb8a220
2019-10-14 10:52:37 -07:00
Nick Desaulniers
19ae5f9ac9 [frameworks][base][hwui] fix -Wimplicit-int-float-conversion
DIRTY_MAX cannot be represented precisely in an IEEE 754 single
precision float.  Calls to DamageAccumulator::dirty() that pass
DIRTY_MAX thus result in an implicit cast that results in imprecision.
Add one to the DIRTY_MAX constant so that its value can be precisely
representing in a single precision float.

Alternatively, we can accept the imprecision via explicit casts in
multiple call sites.

Bug: 139945549
Test: mm
Change-Id: I38b2942f976ad05af2d0e45d1a9fe4214e759a02
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-10 20:22:44 +00:00
Stan Iliev
f2539c3bac Improve comparison of fractions
Fraction comparison does not work for 143.999985 and 2.000001.
This CL resolves this corner case.

Bug: 140778647
Test: pass CTS
Change-Id: I7e39ba822167a3c36c628255a4c79b1ade976929
(cherry picked from commit 019adb0293)
2019-09-30 10:32:04 -04:00
Treehugger Robot
fc733e1d5e Merge changes from topic "textureview_readback"
* changes:
  Improve integer aligned coordinate detection
  Improve logic when to use filtering in readback and TextureView
2019-09-27 17:36:31 +00:00
Treehugger Robot
a828ee6442 Merge changes from topic "system_ext"
* changes:
  Consider overlay in system_ext as system's
  Support /system_ext partition
2019-09-26 22:18:07 +00:00
Stan Iliev
819698bb99 Improve integer aligned coordinate detection
65.9998 should be detected as integer aligned. Before this CL
only 65.0001 was detected as an integer.

Test: Pass TextureViewTest#testSamplingWithTransform
Bug: 137682518
Change-Id: I65e650f50040ab56d2237c14d5d8ee191349b93e
(cherry picked from commit 694f3e4a55)
2019-09-26 13:29:17 -04:00
Stan Iliev
25057111ca Improve logic when to use filtering in readback and TextureView
Detect scaling in screen coordinates, which allows to turn off
filtering for some rect-to-rect matrices (90/270 rotation, scaling).

Test: CTS test coverage expanded in testSamplingWithTransform
Bug: 135895166
Change-Id: Icf5c45fa62bb7a96c5f5464d312bf98a653bc78d
(cherry picked from commit 134372dba9)
2019-09-26 13:22:41 -04:00
John Reck
fa06f3baca Increase dequeueBuffer timeout
Timeout recovery isn't working properly, so increase it
to avoid any false-positives from something like a
slow screen-on

Bug: 137509524
Test: none
Change-Id: Ic4fae04b41f71600479f9557e334f67c27851db4
Merged-In: Ic4fae04b41f71600479f9557e334f67c27851db4
2019-09-26 02:21:50 +00:00
Jeongik Cha
3e725f2224 Consider overlay in system_ext as system's
When there is overlay package in system_ext, turn on POLICY_SYSTEM_PARTITION.
In other words, overlay pacakge in /system_ext is considered as system's one

Test: mv vendor/overlay/framework-res__auto_generated_rro.apk system_ext/overlay
      and then check if it works properly.
Bug: 136715327

Change-Id: Ib225368eae41203a8630f4310d26e9cf1afa706a
Merged-In: Ib225368eae41203a8630f4310d26e9cf1afa706a
(cherry picked from commit cba9579158)
2019-09-23 22:01:29 +00:00
Stan Iliev
419b4095ba TextureVuew rebind GL texture, if AHB content has changed
Bug: 138674291
Test: Ran apps with TextureView and CTS
Change-Id: Ieecf7daf160761de719356644ddaeda8f9c068e1
2019-09-20 14:20:23 -07:00
Colin Cross
f74defb808 Adapt to google::protobuf::uint64 type change
Protobuf 3.9.1 redefines google::protobuf::uint64 from unsigned long
long to uint64_t, which is sometimes unsigned long and sometimes
unsigned long long.  Use PRIu64 to print it, and add an implementation
of ProtoOutputStream::write for long.

Bug: 117607748
Test: m checkbuild
Change-Id: Ib2d3f4e17857f8ccbbe342ce6678e76b591df510
Merged-In: Ib2d3f4e17857f8ccbbe342ce6678e76b591df510
2019-09-06 13:54:11 -07:00
Yi Kong
ae6248d35b Merge "Fix reversed logic"
am: 946e857c71

Change-Id: I22194d1d2923170a224ad6d782dd8155e957ebe3
2019-08-30 07:16:21 -07:00
Yi Kong
f69c334dea Fix reversed logic
To check if a value falls in a range, it should be
  a >= MIN && a <= MAX
instead of
  a >= MIN || a <= MAX

Found by an experimental Clang warning change,
https://reviews.llvm.org/D66044.

Test: presubmit
Change-Id: I91e2a04687285d9311fd831197c73af38ec8379c
2019-08-30 02:09:30 +00:00
Ryan Mitchell
3fc3c813ff Merge "Set idmap2 binary uid and gid after forking" into qt-dev
am: ebad9125c8

Change-Id: Ia4a881fc50118e15c4b6cbe66164c76e7b765298
2019-07-02 10:32:13 -07:00
Ryan Mitchell
a8f13667c2 Set idmap2 binary uid and gid after forking
The file permissions of the idmap2 binary are currently not set
correctly when the system forks and execs the idmap binary during
zygote. This chnages sets the uid and gid after forking to the same uid
and gid of the parent process.

Bug: 134897503
Test: device boots and generates idmap
Change-Id: Ic7fac49e5982f3c47713603b905c3a6be117a05b
2019-07-01 21:19:21 +00:00
Elliott Hughes
a65cae9e7f Move off ZipString and over to std::string/std::string_view as appropriate.
(Cherrypick to AOSP master, resolving merge conflicts.)

Bug: http://b/129068177
Test: treehugger
Change-Id: Ib46761d89772d3a3c655a39df573fd305c117d19
Merged-In: Ib46761d89772d3a3c655a39df573fd305c117d19
2019-06-17 16:05:19 -07:00
Elliott Hughes
78de4f999d Move off ZipString and over to std::string/std::string_view as appropriate.
Bug: http://b/129068177
Test: treehugger
Change-Id: Ib46761d89772d3a3c655a39df573fd305c117d19
2019-06-17 16:47:58 +00:00
John Reck
76925e1210 Merge "Fix setPositionListener race condition" into qt-dev
am: 2c52298236

Change-Id: I93fb56c0e171ffc291962a3aa872ffb650545762
2019-06-12 18:01:47 -07:00
John Reck
097e1d3330 Fix setPositionListener race condition
Fixes: 131625115
Test: atest android.view.cts.SystemGestureExclusionRectsTest android.view.cts.SurfaceViewSyncTest android.uirendering.cts.testclasses.SurfaceViewTests

Change-Id: Ia357ff6fa5d5fe1e152abc23bbd6d8051cfd7aa7
2019-06-12 15:41:50 -07:00
Ryan Savitski
1bbf28fa59 incident report args: add setter stubs & constant aliases
Bug: 130543265
Merged-In: Ieaf5b3b4d67168e2a99ff54e6392c77d8372ed4e
Change-Id: I855002050bf8a9f43b997060b1990f26eec597c7
2019-06-07 13:39:53 +01:00
Nader Jawad
768c1a86e0 Merge "Brought back compatibility check for falling back on dest_out whenever clear is used as a blend mode to draw bitmaps" into qt-dev
am: 1f915b0d33

Change-Id: I69b496f9fac8f8443ec041f2a8f938cdfa5f3b6c
2019-05-30 16:54:06 -07:00
Nader Jawad
476d0d1605 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
Merged-In: I56d015e773b312cac948d850ca2997d8df0cc66d
2019-05-30 15:51:37 -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
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
e496882e8f Merge "Log less" into qt-dev
am: 7ede526835

Change-Id: I64811f0ee057b51446b2d1c1e9972631de1494a1
2019-05-24 17:17:29 -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
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
25ff22df82 Add ProtoOutputStream.serializeToVector
am: dcd64522f4

Change-Id: I5ae822b0f3834f16f7722403e4dd481a5f301f98
2019-05-22 02:17:56 -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
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
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
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
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
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
Greg Daniel
cdfc90231c Remove workaround in VulkanSurface for missing vendor flag.
Test: manual building and testing
Bug: b/128923272
Change-Id: I6be67fddbbf06d4eb7efe316f7e6fd12157e2852
2019-05-14 09:25:41 -04:00