Commit Graph

10063 Commits

Author SHA1 Message Date
TreeHugger Robot
34495b9fc8 Merge "VkFunctorDrawable implementation" 2019-01-16 01:21:08 +00:00
Bo Liu
7b8c1eb302 VkFunctorDrawable implementation
Bug: 115613038
Test: Turning on vulkan with appropriate webview apk does not crash and
sort of works.
Change-Id: If1504da7a35e4bd74a994ab2c2a351e6bc415a18
2019-01-15 15:25:04 -08:00
TreeHugger Robot
82637f5e95 Merge "Invoke Vulkan initialize earlier" 2019-01-15 21:56:21 +00:00
Ryan Mitchell
cf9dd94323 Merge "Add encoding of name and actor overlayable fields" 2019-01-15 19:34:30 +00:00
Winson Chiu
55d9a6042b Merge "Add function to return path for last resolved resource" 2019-01-15 18:38:17 +00:00
Brian Osman
40f4cb5d5e Merge "Switch to skcms-based factories and getters in SkColorSpace" 2019-01-15 15:11:34 +00:00
Nick Kralevich
20f260b639 Merge "CursorWindow.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: adf025b1ff am: de408b3cb4
am: 7f74aeed50

Change-Id: I20f72f6de160a38d3b6067e685c396e6a27e2dc7
2019-01-15 03:31:12 -08:00
Nick Kralevich
7f74aeed50 Merge "CursorWindow.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: adf025b1ff
am: de408b3cb4

Change-Id: I2efa1736d545230283bf4d5ffaca209638723945
2019-01-15 03:19:36 -08:00
TreeHugger Robot
4831523575 Merge "Put HWUI & Webview color space in a struct" 2019-01-15 08:13:49 +00:00
Brian Osman
be8fac26d7 Switch to skcms-based factories and getters in SkColorSpace
Test: Mechanical substitution, still builds.
Change-Id: I877e4edd61e81279830ffbbcfea18d721abf6943
2019-01-15 03:17:09 +00:00
Chih-Hung Hsieh
bc80706599 Merge "Fix/suppress androidfw google-explicit-constructor warnings" am: 392f0052c2 am: 99a3d72b98
am: cd06f9ee04

Change-Id: I0340acdbd6530f9bd9f67333974bcc65ff97e0e5
2019-01-14 14:58:22 -08:00
Winson
2f3669b767 Add function to return path for last resolved resource
After an AssetManager.FindEntry call is made, either directly or from any of the resource entry calls, a stack of the steps taken to resolve the resource is saved. Those steps can be retrieved as a log later on by calling AssetManager.GetLastResourceResolution, which returns a formatted string of the resource ID/name and path taken, including the configs and package names of each step.

Logging and the saving of the steps to memory can be enabled/disabled with the @hide .setResourceResolutionLoggingEnabled() method on AssetManager.

Bug: 122374289

Test: cases for single and multi ApkAssets loaded
Test: case for no resolution made
Test: made test app to display log on device
Test: added debugging call to source and ran through on-device apps

Change-Id: I6a32b8d4020c3f8510032ff7f431510089fff43f
2019-01-14 14:52:00 -08:00
Chris Blume
1a2bdc8c65 Put HWUI & Webview color space in a struct
The color space parameters are currently separate members. This was
making passing color space parameters to functions a bit messy.

This CL puts the color space parameters into their own struct which can
be cleanly passed to functions.

Test: Builds locally
Change-Id: I3709b88dbdedb9616d4905ee973c3099f95b3ca7
2019-01-14 14:48:46 -08:00
Chih-Hung Hsieh
cd06f9ee04 Merge "Fix/suppress androidfw google-explicit-constructor warnings" am: 392f0052c2
am: 99a3d72b98

Change-Id: Icb12400292dae8ed091f1a55eb2f0a7e50e84667
2019-01-14 14:16:59 -08:00
Nick Kralevich
e104df9483 CursorWindow.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)
Replace calls to dup() with fcntl(F_DUPFD_CLOEXEC). The only difference
between the two is that O_CLOEXEC is set on the newly duped file
descriptor. This helps address file descriptor leaks crossing an exec()
boundary.

Test: compiles and boots
Bug: 120983106
Change-Id: Icc2ff2f7f398905aa8283c8797898114d34a9829
2019-01-14 14:05:06 -08:00
TreeHugger Robot
a25b2edeb8 Merge "Store VkPipelineCache to ShaderCache" 2019-01-14 21:56:35 +00:00
Treehugger Robot
392f0052c2 Merge "Fix/suppress androidfw google-explicit-constructor warnings" 2019-01-14 20:21:49 +00:00
Stan Iliev
14211aaf9e Store VkPipelineCache to ShaderCache
Store vulkan pipeline cache in ShaderCache. Avoid writing to disk
unless pipeline cache size has changed or there was a new shader
compilation.

Test: Ran app startup test. Ran Calc app.
Bug: 122659224
Change-Id: Ie54ea8f0ee9c87387c310b369b2350310e20fa13
2019-01-14 12:29:30 -05:00
Ryan Mitchell
ef5673a4c4 Add encoding of name and actor overlayable fields
Encode the actor and name attributes of <overlayable> elements in the
overlayable chunks. Two chunks cannot have the same name.

Bug: 110869880
Bug: 119390855
Test: aapt2_tests and libandroidfw_tests
Change-Id: I0ed95efef640b3927046b6155d1840f0d96030dd
2019-01-11 14:45:09 -08:00
Chih-hung Hsieh
7dc7d9507e Merge "Fix/suppress libs/* google-explicit-constructor warnings" am: a35900fd8e am: 0aab12591f
am: 3169d6895d

Change-Id: I14010d3e22cfa4a3e1a1e47a19eab3117fda0455
2019-01-11 10:35:47 -08:00
Chih-hung Hsieh
3169d6895d Merge "Fix/suppress libs/* google-explicit-constructor warnings" am: a35900fd8e
am: 0aab12591f

Change-Id: I8f22019ad2a92b24ef61e151d5692fbe6e7e387f
2019-01-11 10:19:25 -08:00
TreeHugger Robot
a26b9b940a Merge "Fix leak/crash in exit" 2019-01-11 02:49:01 +00:00
TreeHugger Robot
09b1843ca4 Merge "Rename Vulkan functor items to match style" 2019-01-11 01:09:00 +00:00
John Reck
6104cea3fb Fix leak/crash in exit
Bug: 120440607
Test: hwuimacro32 doesn't crash
Change-Id: I35b7a924e338efb314f07b923ba22ffcf98f75ee
2019-01-10 15:34:49 -08:00
Stan Iliev
150001aaa7 Invoke Vulkan initialize earlier
Invoke VulkanManager::initialize as soon as the RenderThread is
started. This reduces time spent in the first call to
CanvasContext::setSurface by ~20ms.

Test: Ran Hermetic Startup: EmptyActivity
BUg: 122659224
Change-Id: Ifa160b0b0bbe43adc82f061fac51082878164804
2019-01-10 18:31:55 -05:00
Chris Blume
237b092884 Rename Vulkan functor items to match style
Several of the first-iteration file/class/member variable names did not
match the style of their surrounding neighbors. This CL fixes that.

Test: Compiles
Change-Id: I9374e6cab79c57413e728d253067306d15011f2c
2019-01-10 13:06:46 -08:00
Chih-Hung Hsieh
c2ace0c694 Fix/suppress androidfw google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Id02c36c24f5708584e317c035cef3ef2762b537e
2019-01-10 19:53:08 +00:00
Chih-Hung Hsieh
0c29f39c8e Fix/suppress libs/* google-explicit-constructor warnings
* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I31d45e4c6ff9fa69801a14c341f2da66baf565a0
2019-01-10 19:52:57 +00:00
TreeHugger Robot
b42f9c93cb Merge "Support mouse pointer on external displays (2/2)" 2019-01-10 11:29:48 +00:00
TreeHugger Robot
2f41a9c5ff Merge "Make sure interop path works with draw_fn" 2019-01-10 01:08:56 +00:00
Chih-Hung Hsieh
2c9dad72bd Merge "Fix/suppress hwui google-explicit-constructor warnings" am: dcfef16295 am: 50991469e3
am: 739cf0d659

Change-Id: Id2422881831785eb9a47fda38b3fe6ce95b843cb
2019-01-09 15:34:01 -08:00
Chih-Hung Hsieh
739cf0d659 Merge "Fix/suppress hwui google-explicit-constructor warnings" am: dcfef16295
am: 50991469e3

Change-Id: Ic97c02ca4f0f903e3e9c861b4dd605ce0b7c1905
2019-01-09 15:09:06 -08:00
Bo Liu
30eef074f2 Make sure interop path works with draw_fn
plat_support to pass through the GL functor even if hwui is using vulkan
pipeline, since interop calls the GL functor.

Also remove sGLDrawThread and call functor on render thread, since
onDestroy and onContextDestroy are currently hard coded to run on render
thread as well, and functor expects all calls to be called on a single
thread.

Bug: 115613038
Test: draw_fn functor works with vulkan enabled
Change-Id: Ie3fa643695e95a6cc383f7ffe3eb3ad741792707
2019-01-09 20:41:06 +00:00
Chih-Hung Hsieh
f21b0b6d36 Fix/suppress hwui google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I8c6ebb99679b0a71251024d70a13f8164e67db5e
2019-01-09 19:50:30 +00:00
Arthur Hung
b9b320093c Support mouse pointer on external displays (2/2)
Limit mouse boundary to one display viewport.
Currently if desktop mode is enable, selects the topmost freeform display,
or find first external display if there is no freeform display.
Return the default display if desktop mode is not enable.

- Add getPointerDisplayId to find the preferred display.
- Limit update viewports from InputReader.
- obtainPointerController would also find the associated display id.
- Reload cursor resources if resolution or display changed.

Bug: 113559891
Test: atest inputfliger_tests
Test: ActivityView test app
Change-Id: Iffd01e27f5010ccfb0481a028658b7290ca6316d
2019-01-09 20:52:42 +08:00
TreeHugger Robot
5bacb6fd34 Merge "don't toggle between Paint and SkPaint" 2019-01-09 11:33:00 +00:00
Mike Reed
2dfd55d199 don't toggle between Paint and SkPaint
Test: make

Change-Id: Id5864591db0577a24833bbb90036b9554ce130d4
2019-01-08 16:19:22 -05:00
Stan Iliev
43d0613325 Change formula for font cache size
Set font cache size to one screen buffer size.
For Pixel 2 XL this increased the texture size from
3670016 to 4194304. Skia can allocate up to 4 textures
of that size.

Test: UiBenchJankTests#testInflatingEmojiListViewFling
Bug: 121157706
Change-Id: I7af1f184c6dbc10b45a8ef80a04200d518fbaa0e
2019-01-08 19:54:20 +00:00
liulvping
eafbb21fed Merge "fix mmap leak of graphicsstats service" am: 9ebc299b73 am: a2b2a415f0
am: be2b5dab88

Change-Id: I0507151e3394d6d599316b8b90e2fd50af20fdbe
2019-01-07 21:49:47 -08:00
liulvping
be2b5dab88 Merge "fix mmap leak of graphicsstats service" am: 9ebc299b73
am: a2b2a415f0

Change-Id: I9da0210799cee14bb36afd186d26fbb1718ffc19
2019-01-07 21:36:12 -08:00
Treehugger Robot
9ebc299b73 Merge "fix mmap leak of graphicsstats service" 2019-01-08 05:03:47 +00:00
Chih-hung Hsieh
17cc87e533 Merge "Fix/suppress hwui/tests google-explicit-constructor warnings" am: 6832595911 am: 0e0edd08ac
am: c545d54389

Change-Id: I6a074df93a9eb22ec2da81f91826f699989ff988
2019-01-07 17:48:32 -08:00
Chih-hung Hsieh
c545d54389 Merge "Fix/suppress hwui/tests google-explicit-constructor warnings" am: 6832595911
am: 0e0edd08ac

Change-Id: I8199a26c717fe80b3a733d796b85f28d3acc25a9
2019-01-07 17:29:54 -08:00
Chih-Hung Hsieh
1c57378eed Fix/suppress hwui/tests google-explicit-constructor warnings
* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I59c61af29ab09209c5a4c2bf43b10215bf59756a
2019-01-04 17:42:27 +00:00
Bo Liu
1b0278c19e Mark GrContext dirty after onContextDestroyed
Bug: 120997728
Test: hwui_unit_test passes
Change-Id: I8b60c45ebf7904b7026b480541dac78b70a59e0d
2019-01-04 07:28:55 -08:00
Dimitry Ivanov
d74e2673d0 Merge "hwui: Add libGLESv1_CM to the list of shared_libs" 2019-01-03 19:26:38 +00:00
TreeHugger Robot
8319a7ee7f Merge "Plumb new functor in native/webview" 2019-01-03 19:15:24 +00:00
Bo Liu
d6668e7c0c Plumb new functor in native/webview
Add plumbing to native/webview for the new functor.
Add a void* data parameter to avoid having to use a thread safe
map for in both the plumbing and in webview.

Test: Compiles and webview runs
Bug: 120997728
Change-Id: I0f9f3acb05688a5afcf95974bc0b3b117f33a8e3
2019-01-03 19:15:18 +00:00
Mike Reed
3905e83b20 All non-blob variants of drawText are deprecated
Test: make

Change-Id: Iff8cb6a7e2c4f47dcd56db311bc73e0ab12ac8f3
2019-01-02 16:25:04 +00:00
liulvping
4832438c3a fix mmap leak of graphicsstats service
Test: repeat dumpsys graphicsstats and check process maps

Change-Id: Iae2baa7eb7761aefb867644edfaaf8dbe2132c7b
Signed-off-by: liulvping <liulvping@xiaomi.com>
2019-01-02 10:54:57 +00:00