Commit Graph

9552 Commits

Author SHA1 Message Date
John Reck
437f6fb15c Verify gralloc supports fp16
Bug: 77973662
Test: builds
Change-Id: Id8a53885178d698c7b2fd6fc5ea8d4e36ce2ef15
2018-05-07 08:14:43 -07:00
android-build-team Robot
9e29859d2e Merge "remove BakedOps and much of renderstate" 2018-05-04 20:34:32 +00:00
android-build-team Robot
404632bcf2 Merge "Pass full context to Minikin" 2018-05-04 19:34:57 +00:00
Mike Reed
e7f688bd01 remove BakedOps and much of renderstate
Test: make

Change-Id: If070b7436b848c6840abfac5f051b0f5b6cb17ce
2018-05-04 15:21:49 -04:00
Derek Sollenberger
ecbb314486 Support readback of TextureView into 565 and extended sRGB. am: 2324991a77
am: 1babd54e4c

Change-Id: Idad79c50a32cdb4c65042da13d08eb68a27fcd6c
2018-05-04 12:05:59 -07:00
Derek Sollenberger
1babd54e4c Support readback of TextureView into 565 and extended sRGB.
am: 2324991a77

Change-Id: If80572b06965089415c32b6ded8b6b1b5fda19b5
2018-05-04 12:00:32 -07:00
Derek Sollenberger
2324991a77 Support readback of TextureView into 565 and extended sRGB.
Bug: 78906699
Test: CtsViewTestCases
Change-Id: I89e8544a883dcb3eb222c164ab57d20e55a073c3
2018-05-04 18:46:52 +00:00
android-build-team Robot
2214272f1c Merge "remove shadow related references" 2018-05-04 18:04:24 +00:00
Mike Reed
4ad8f5329f remove shadow related references
Test: make

Change-Id: I1fc387ee442ca9120ff4f80248cc2395e93128f6
2018-05-04 13:12:16 -04:00
John Reck
d9d7f127b5 Delete a bunch of code
This removes the duality of DisplayList, removing a small amount of
overhead

Test: buids & hwuiunit passes

Change-Id: I8bb3a20e9ead1caec4b4a8a3e9f2c08f717a7096
2018-05-03 15:25:19 -07:00
Mike Reed
ef20ece6c7 Merge "remove (dead) caches from hwui" 2018-05-03 21:33:05 +00:00
Mike Reed
8cafcc628f remove (dead) caches from hwui
Test: make

Change-Id: I18bfe51896672272ce7d471eaead69b651399368
2018-05-03 13:23:40 -04:00
Mike Reed
2b0863a22c Merge "remove unused layout method in TestUtils" 2018-05-03 16:30:43 +00:00
android-build-team Robot
3fdd62c52f Merge "Invoke create_recording_canvas correctly in macro bench tests" into pi-dev am: f28901f6c5
am: 72b1215615

Change-Id: Ic704d134a33bb9cfbda2ae88fce3571bda5176fa
2018-05-02 17:26:55 -07:00
Seigo Nonaka
3a4217fb74 Pass full context to Minikin
Bug: 72461923
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest
Test: minikin_tests
Test: hwui_unit_tests

Change-Id: Ic0827a85dbf1ab2b38d44514e400f524686748d2
2018-05-02 16:43:58 -07:00
Yi Jin
68a16c4277 Merge "Add a section flag to bypass failure if a specific path can't be found." into pi-dev
am: e09cde0cd9

Change-Id: I01c5a7a2c1ead02f5af0514cf9bf9b83f1682316
2018-05-02 15:10:58 -07:00
Yi Jin
e09cde0cd9 Merge "Add a section flag to bypass failure if a specific path can't be found." into pi-dev 2018-05-02 21:36:23 +00:00
Anton Hansson
b365836d8e Merge "frameworks/base: Update a few more references to android.jar." am: 85e68063a9 am: 52e98e1b7a
am: 0f185f8b19

Change-Id: I84aebb1697c0217ea9063a2c6b71e8d4a3c6b1a7
2018-05-02 14:17:26 -07:00
Mike Reed
3ad4f8aef5 remove unused layout method in TestUtils
Test: make

Change-Id: I30f4406750d7dfc8fb0f6a8aa07229a7478219e2
2018-05-02 16:43:55 -04:00
android-build-team Robot
72b1215615 Merge "Invoke create_recording_canvas correctly in macro bench tests" into pi-dev
am: f28901f6c5

Change-Id: I855fec4f3cf126485999a008cec9648967cbf21f
2018-05-02 12:52:01 -07:00
android-build-team Robot
f28901f6c5 Merge "Invoke create_recording_canvas correctly in macro bench tests" into pi-dev 2018-05-02 19:38:43 +00:00
android-build-team Robot
798cc60f54 Merge "remove (dead) Font code" 2018-05-02 17:55:27 +00:00
Anton Hansson
0f185f8b19 Merge "frameworks/base: Update a few more references to android.jar." am: 85e68063a9
am: 52e98e1b7a

Change-Id: Iffb2389f8ef3dcca139a99a617c2079910f3c902
2018-05-02 10:24:32 -07:00
Mike Reed
ebf9ffce47 remove (dead) Font code
Test: make

Change-Id: Icdb0f2fc356459718f02569054b91eadcd6a15c2
2018-05-02 12:56:08 -04:00
android-build-team Robot
8fabc163ff Merge "don't reference (dead) DevKern" 2018-05-02 15:25:07 +00:00
Yi Jin
7fe3dee3ae Add a section flag to bypass failure if a specific path can't be found.
This is a temporary solution to bypass failure of reading cpu info or 
battery type in P if the path doesn't exist on some devices. See bug for
details. However in Q, incidentd should implement reading from the
common Linux kernel interfaces.

Bug: 78028767
Bug: 78239764
Test: atest incidentd_test
Change-Id: I08ffcb21709efe5478d2ac46121deb5795af1024
Merged-In: I08ffcb21709efe5478d2ac46121deb5795af1024
2018-05-02 01:31:08 +00:00
Yi Jin
3f3603587c Add a section flag to bypass failure if a specific path can't be found.
This is a temporary solution to bypass failure of reading cpu info or
battery type in P if the path doesn't exist on some devices. See bug for
details. However in Q, incidentd should implement reading from the
common Linux kernel interfaces.

Bug: 78028767
Bug: 78239764
Test: atest incidentd_test
Change-Id: I08ffcb21709efe5478d2ac46121deb5795af1024
2018-05-01 16:25:52 -07:00
Mike Reed
441e02e91b don't reference (dead) DevKern
This field is not respected in Android, so we want to remove it from Skia.

Test: make

Change-Id: If410265a31c04f283098ac55727c4a12bf717ac1
2018-05-01 20:03:13 +00:00
Anton Hansson
0c70390040 frameworks/base: Update a few more references to android.jar.
These files are moving. Update the paths so that the old files can be
deleted.

Bug: 77525052
Test: ./build for one of these scripts
Change-Id: Iacca1f1930d6a2614866f6503a2b4c1eba4d4018
2018-05-01 18:34:10 +01:00
Derek Sollenberger
9298ad1b78 Merge "Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing" into pi-dev 2018-05-01 16:57:28 +00:00
android-build-team Robot
321e9105a8 Merge "Remove unneeded pipeline check" 2018-05-01 04:08:14 +00:00
Derek Sollenberger
551d08e2d5 Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing
This CL extracts the android_dataspace from the GLConsumer and converts
it to a SkColorSpace.  HWUI always expects to composite into an sRGB
destination so when we draw the layer we run the draw through a
colorFilter that converts the input colorSpace into that of the
destination.

Test: CtsViewTestCases
Bug: 78016220
Merged-In: Ic0446a0d861e86a5a9d0382346b57fcc45c8a61b
Change-Id: Ic0446a0d861e86a5a9d0382346b57fcc45c8a61b
2018-05-01 02:45:43 +00:00
John Reck
b5fc209b35 Remove unneeded pipeline check
Test: none
Change-Id: I1123567c51efff3eef6c09f76c1624e48f71c802
2018-04-30 14:43:22 -07:00
android-build-team Robot
635dc181ed Merge "Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing" 2018-04-30 21:05:29 +00:00
John Reck
02995ec8a0 Merge changes Id3285b63,Ie8e9398c
* changes:
  Move all non-GL HW Bitmap work off RT
  Remove RenderThread from EglManager
2018-04-30 20:32:29 +00:00
Stan Iliev
4f901c8cec Invoke create_recording_canvas correctly in macro bench tests
create_recording_canvas expects as a last parameter a render node,
which is used to reuse deallocated display lists. Passing the
render node improved performance in several tests and it is
matching how HWUI is using that API too.

bug: 69131471
Test: tvappGlTex DrawFrame is 1ms faster
Change-Id: I93d8da694c178d3fb8d1aa52afa76dd8271e93cb
2018-04-30 20:22:19 +00:00
Derek Sollenberger
be3876c434 Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing
This CL extracts the android_dataspace from the GLConsumer and converts
it to a SkColorSpace.  HWUI always expects to composite into an sRGB
destination so when we draw the layer we run the draw through a
colorFilter that converts the input colorSpace into that of the
destination.

Test: CtsViewTestCases
Bug: 78016220
Change-Id: Ic0446a0d861e86a5a9d0382346b57fcc45c8a61b
2018-04-30 15:53:46 -04:00
Yi Jin
18678bdca0 Empty output if compact fails.
There must be equal number of start/end calls with right token given in
order, if used in wrong order, ProtoOutputStream will have empty output.

Also refactor Android.bp, so the gtest is standalone unit test, it used
to require compile/push libprotoutil.so to device.

Bug: 77342154
Test: atest libprotoutil_test
Change-Id: I0011bbab34c04cb38164d2ed21cd818d52a2ecf9
2018-04-27 14:16:50 -07:00
John Reck
b90d4cb3be Move all non-GL HW Bitmap work off RT
Bug: 78288006
Test: hwuiunit passes, systrace showed work distribution as expected,
and photos using HW bitmaps still works

Change-Id: Id3285b637b5d74d3c5891ed3051ac1e44015987a
2018-04-27 12:39:45 -07:00
TreeHugger Robot
6c60da37e0 Merge "Use c++ template to reduce duped code." 2018-04-27 03:34:23 +00:00
Todd Kennedy
0a81745b48 Merge "Allow using reserved package IDs" into pi-dev am: 13588dc9e4
am: c323122e93

Change-Id: I0addf146d9519a93bc2f8f73898a3454cb1cfb56
2018-04-26 15:27:00 -07:00
Todd Kennedy
13588dc9e4 Merge "Allow using reserved package IDs" into pi-dev 2018-04-26 21:29:17 +00:00
Yi Jin
fd2a4c791e Use c++ template to reduce duped code.
Bug: 77342154
Test: atest libprotoutil_test
Change-Id: I6cf165c2214a8a627722a156b7498d0d8f5d1e18
2018-04-26 14:28:12 -07:00
John Reck
1e51071240 Remove RenderThread from EglManager
Refactor to make EglManager re-usable.

Test: hwuiunit passes, hwuimacro works

Change-Id: Ie8e9398c703fada1dc5d8baca5f42485eadea202
2018-04-26 13:46:12 -07:00
TreeHugger Robot
4afbedf988 Merge "Add unit tests to libprotoutil." 2018-04-26 20:38:08 +00:00
Yi Jin
c3d4b28a76 Add unit tests to libprotoutil.
Bug: 77342154
Test: atest libprotoutil_test
Change-Id: I57f31f5cf83b635b200a93cbc655fac7f5edfbd5
2018-04-26 12:00:46 -07:00
Todd Kennedy
325129964e Allow using reserved package IDs
Pre-O, the platform treats negative resource IDs [those with
a package ID of 0x80 or higher] as invalid.  In order to work
around this limitation, we allow the use of traditionally
reserved resource IDs [those between 0x02 and 0x7E].

Bug: 78041707
Test: ./out/host/linux-x86/nativetest64/aapt2_tests/aapt2_tests
Test: ./out/host/linux-x86/nativetest/libandroidfw_tests/libandroidfw_tests
Test: Manual. Create a feature split with a package ID of 0x7E and see it runs and can reference base resources.

Change-Id: I3d9782cc05d3a55e1a2467bf39566788847e1160
2018-04-26 10:27:30 -07:00
Yi Jin
c5b71ee2ab Use function from libbase instead.
Bug: 77342154
Test: atest libprotoutil_test && atest incidentd_test with
libprotoutil.so pushed to device

Change-Id: I38d200f2495b00f632722ddddf9ccab76c147cc4
2018-04-25 16:51:40 -07:00
Leon Scroggins
74e0961f0c Merge "Attach color space after performing a readback" into pi-dev am: 5bb709c31e
am: 8bed8e4640

Change-Id: I30163b35febc6d62d65071be32e68e77d5b6b051
2018-04-24 13:47:24 -07:00
Leon Scroggins
5bb709c31e Merge "Attach color space after performing a readback" into pi-dev 2018-04-24 20:01:22 +00:00