Commit Graph

10035 Commits

Author SHA1 Message Date
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
Mike Reed
4a4b1be866 drawTextRSXform is deprecated
Test: make

Change-Id: I9c041497688b2657e153eeda4c895cd810fd7f94
2019-01-01 15:43:13 -05:00
dimitry
61dfd8fa83 hwui: Add libGLESv1_CM to the list of shared_libs
hwui tests are using glMapBufferRangeEXT symbol from libGLESv2
which according to the include file is provided by libGLESv1_CM.

Bug: http://b/69603741
Test: make
Change-Id: I946ec66ce08e0296a553f3c67bddefa4b568d0fd
2018-12-28 22:51:17 +01:00
TreeHugger Robot
1048106e8f Merge "remove overrides of (dead) onDrawTextRSXform" 2018-12-21 19:29:28 +00:00
Chih-hung Hsieh
b708a7953d Merge "Fix/suppress incident* google-explicit-constructor warnings" am: 6af0e228f3 am: 78085ba0a3
am: ee844ad9a2

Change-Id: I53c2fd3886e565d824e2765671fb7965f07bd08d
2018-12-21 09:24:28 -08:00
Chih-hung Hsieh
34ba791b25 Merge "Fix/suppress pipeline google-explicit-constructor warnings" am: 63790135f4 am: 2cd94bae8d
am: b6ecc7ca92

Change-Id: If3fedf4175cf7dd992817677a0bd45ad9d5335ea
2018-12-21 09:15:12 -08:00
Chih-hung Hsieh
ee844ad9a2 Merge "Fix/suppress incident* google-explicit-constructor warnings" am: 6af0e228f3
am: 78085ba0a3

Change-Id: Ie3676e133e4722762f44245a7a050971fa64105e
2018-12-21 09:10:22 -08:00
Chih-hung Hsieh
b6ecc7ca92 Merge "Fix/suppress pipeline google-explicit-constructor warnings" am: 63790135f4
am: 2cd94bae8d

Change-Id: I4163be5e021a4d14ba51985984b924e74ac324c2
2018-12-21 09:04:07 -08:00
Chih-hung Hsieh
6af0e228f3 Merge "Fix/suppress incident* google-explicit-constructor warnings" 2018-12-21 16:30:12 +00:00
Chih-hung Hsieh
63790135f4 Merge "Fix/suppress pipeline google-explicit-constructor warnings" 2018-12-21 16:29:55 +00:00
Mike Reed
3682251dfd remove overrides of (dead) onDrawTextRSXform
Test: make

Change-Id: Id943d36e76a837ec8e86de6f28e999a442cc489b
2018-12-21 09:33:49 -05:00
Chih-Hung Hsieh
a640ed6058 Merge "Fix/suppress renderthread google-explicit-constructor warnings" am: 138aae8eaf am: 2e2028aee4
am: 4e628bc772

Change-Id: I543de7a1c0e3429ca11addd60ae8300d8aedda29
2018-12-20 22:20:18 -08:00
Chih-Hung Hsieh
4e628bc772 Merge "Fix/suppress renderthread google-explicit-constructor warnings" am: 138aae8eaf
am: 2e2028aee4

Change-Id: I27d1a114816f6ce94751816f7d17720e0a6d8091
2018-12-20 22:09:53 -08:00
Chih-Hung Hsieh
f9336412b3 Fix/suppress pipeline 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: Iadeb6cf7ba65d646ec131e567b3ef90c3a699885
2018-12-20 15:36:19 -08:00
Chih-Hung Hsieh
d736d4b845 Fix/suppress renderthread 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: Ib7d634bf1e0e9a1dda35b0a1d92de4d460193296
2018-12-20 15:10:23 -08:00
Chih-Hung Hsieh
7a88a938d2 Fix/suppress incident* google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
* Remove redundant explicit of copy constructors

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I26a11bb798d25605577269ed340e97afc8566960
2018-12-20 13:45:04 -08:00
Derek Sollenberger
24fc901e5f Improve performance of unclipped save layers.
Instead of allocating a separate renderTarget and switching
between them on each draw the new implementation follows the same
pattern that the old HWUI renderer used. The area of the layer is
now copied to a buffer on the GPU, the area is then cleared, rendered
as normal, and finally the texture is redrawn using dst_over blending.

This results in no render target switches and is considerably faster
on some hardware.

Test: CtsGraphicsTestCases, CtsUiRenderingTestCases
Bug: 119222339
Change-Id: I716aac1fc31e4c7a171373d37dee82034c01cf18
2018-12-20 10:04:46 -05:00
Ryan Mitchell
ed2af4df00 Merge "Add actor and name parsing for overlayable" 2018-12-19 17:31:50 +00:00
Aurimas Liutikas
b39b21b7cd Merge "Add libandroidfw_tests to device-tests suite" 2018-12-19 17:02:45 +00:00
Dan Shi
8d7267e82a Add libandroidfw_tests to device-tests suite
For it to be included in device-tests.zip to run test in a suite.

Bug: none
Test: none
Change-Id: Ic20bede356f82a80582acb3883ad1ab9e76a6bdc
2018-12-18 16:06:40 -08:00
Derek Sollenberger
e216948d63 Cleanup of Bitmap.h entry points.
All Bitmap constructors have been made private and the only way to
create one is through the allocate or createFrom factories.

SkColorSpace is now explicitly passed in to all the factories and is
no longer assumed to be sRGB.

Test: atest CtsGraphicsTestCases
Change-Id: I92c1c5c59df6de7fdd90e9504a2c2717cb854588
2018-12-18 14:20:24 -05:00
John Reck
c0cd1d7f33 Merge "New WebViewFunctor API" 2018-12-18 17:50:37 +00:00
TreeHugger Robot
eb1c1e97ca Merge "Fix an issue in SurfaceTexture with forgetting the dataspace" 2018-12-18 14:41:42 +00:00
Kamaljeet Maini
6dd7852670 Merge "Revert "Support mouse pointer on external displays (2/3)"" 2018-12-18 03:00:17 +00:00
John Reck
3a0041cf1d Merge "Add missing getter & improve docs" 2018-12-17 23:52:21 +00:00
Stan Iliev
f6a4ee5b01 Fix an issue in SurfaceTexture with forgetting the dataspace
Test: Ran CTS and verified dataspace is not set to 0
Bug: 119504473
Change-Id: I6f9920e1979e5435dc95a7c2ab3f02d57dc57c4e
2018-12-17 17:37:38 -05:00
TreeHugger Robot
1e65287c50 Merge "Add TEST_MAPPING for androidfw to add presubmit tests." 2018-12-17 22:35:39 +00:00
Chih-Hung Hsieh
2491af24a8 Merge "Fix performance-for-range-copy warnings" am: bc29242288 am: 7adb73f332
am: 2296036a40

Change-Id: Ia99ea6c9633986e68340bc88983d06baa7a1c597
2018-12-17 14:31:14 -08:00
TreeHugger Robot
73d3d815cd Merge "Read product property to set Vulkan as default render pipeline" 2018-12-17 22:26:25 +00:00