Commit Graph

9993 Commits

Author SHA1 Message Date
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
Chih-Hung Hsieh
2296036a40 Merge "Fix performance-for-range-copy warnings" am: bc29242288
am: 7adb73f332

Change-Id: I0ab1a28f5490f96bc8b08f073d364a01ff2f20df
2018-12-17 14:17:57 -08:00
Andrii Kulian
d44026fd47 Revert "Support mouse pointer on external displays (2/3)"
This reverts commit 84cdf9cc3b.

Reason for revert: b/120864177

Test: Presubmit
Bug: b/120864177

Change-Id: Ia65e704169527b54cf1d1d470445f96a65fa0294
2018-12-17 13:49:37 -08:00
Aurimas Liutikas
6c2a8b480f Add TEST_MAPPING for androidfw to add presubmit tests.
Test: atest --host libandroidfw_tests
Change-Id: Id893e720139791b499f2f38a25a057738a488c2b
2018-12-17 21:05:44 +00:00
Chih-Hung Hsieh
a1b644e88c Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: Ie481e88025a7a1f3abde8ff63420d5ccd8577e52
2018-12-17 20:00:55 +00:00
John Reck
470a919135 Add missing getter & improve docs
Also fix SkiaDisplayList::getUsedSize()

Bug: 120865963
Test: atest android.uirendering.cts.testclasses.RenderNodeTests
Change-Id: I3cdbd8d330da9a00367199087c9ae1e0a2cacf46
2018-12-17 11:25:34 -08:00
Peiyong Lin
3bff135503 [HWUI] Remove hardcoding around wide color gamut.
Previously we hardcode wide color gamut in HWUI as scRGB color space with FP16
pixel format. However, the hardware composer doesn't support this combination.
This patch plumbs wide color gamut composition preference from composer API to
HWUI such that HWUI can now pick the combination of color space and pixel
format for the surface.

BUG: 111436479
Test: Build, flash and boot, verify with a demo app.
Change-Id: I7a8b4d8deca72ef40069dba9d23a3f5e90dbfe5a
2018-12-15 09:35:25 -08:00
TreeHugger Robot
023e91a3e3 Merge "use SkFontMetrics instead of SkPaint::FontMetrics" 2018-12-15 02:44:32 +00:00
Stan Iliev
b8811aa52f Read product property to set Vulkan as default render pipeline
Bug: 119267168
Test: Booted pixel 3 with Vulkan rendering
Change-Id: Ibc4b2e00d791b1fb333c0e0f5db2b5f084808c24
2018-12-14 22:36:40 +00:00
John Reck
283bb46846 New WebViewFunctor API
Should function alongside existing functor API.

Bug: 120997728
Test: hwuiunit passes
Change-Id: I8f6143d0be1111431b55016f34de319f6b8c8910
2018-12-14 14:07:18 -08:00
Mike Reed
da3488a6e2 use SkFontMetrics instead of SkPaint::FontMetrics
Test: make

Change-Id: I6c078f847e8938608047ffa9b353c6855a0532fe
2018-12-14 12:09:00 -05:00
Dimitry Ivanov
c1f34f0842 Merge "hwui: Add libGLESv3 to the list of shared_libs" 2018-12-14 11:09:28 +00:00
dimitry
cab37cd652 hwui: Add libGLESv3 to the list of shared_libs
hwui tests are using symbols from libGLESv3 byt rely on the fact
that they used to be exported by libGLESv2. It used to rely on
the fact that libGLESv3.so was a symlink to libGLESv2.so which
is no longer the case.

Bug: http://b/69603741
Test: make
Change-Id: I769f1fa79e364ae87d01c07f6a3976200e8722a2
2018-12-13 15:36:45 +01:00
Treehugger Robot
a32f898720 Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" 2018-12-13 05:45:20 +00:00
Ryan Mitchell
267d6ac11e Merge "Refactor policy parsing" 2018-12-13 00:07:32 +00:00
Todd Kennedy
81e6e1dc1f Merge "Adding rtmitchell to androidfw OWNERS" 2018-12-13 00:03:50 +00:00
Ryan Mitchell
2d708911a7 Adding rtmitchell to androidfw OWNERS
AAPT2 + AndroidFW!

Change-Id: I40bb405d8f0a17d8477bff931bafa2c2ab8fa274
2018-12-12 15:59:00 -08:00
Chih-hung Hsieh
5374655451 Merge "Fix cert-dcl16-c clang-tidy warnings." am: 20b64c4bc7 am: 3038f743bf
am: 82b999a59c

Change-Id: Ie4bb31fc7366d65e92209c31f6721e20c8538e9a
2018-12-11 19:34:07 -08:00
Chih-hung Hsieh
82b999a59c Merge "Fix cert-dcl16-c clang-tidy warnings." am: 20b64c4bc7
am: 3038f743bf

Change-Id: I049e4e1ebad45da8bfae34bb0c0ca6f241720b70
2018-12-11 19:23:33 -08:00
Chih-hung Hsieh
3038f743bf Merge "Fix cert-dcl16-c clang-tidy warnings."
am: 20b64c4bc7

Change-Id: I5b50ddada4c24ca6146baad0bbe023e209f469fe
2018-12-11 19:15:23 -08:00
Xin Li
15b123ef45 DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
Bug: 120502534
Change-Id: Idc8bfb6d97a869b76cfb87ca1a494201baf9e8bd
2018-12-11 14:13:44 -08:00
Ryan Mitchell
1bb1fe068a Refactor policy parsing
This change removes the ability for an overlayable resource to be
defined in multiple policy blocks within the same overlayable. This
change also changes aapt2 to use a bit mask to keep track of the parsed
policies.

Bug: 110869880
Bug: 120298168
Test: aapt2_tests
Change-Id: Ie26cd913f94a16c0b312f222bccfa48f62feceaa
2018-12-11 13:48:45 -08:00
Chih-Hung Hsieh
054dab1d47 Fix cert-dcl16-c clang-tidy warnings.
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: I2dc262d3407aafa969e921236dc3fc3ae60eb9d4
2018-12-11 11:27:17 -08:00
Elliott Hughes
a1a32b00e8 C++17 is the default now.
Test: builds
Change-Id: Id5e671844c2722adf9757d8f917109d0d74724d4
2018-12-11 09:56:56 -08:00
TreeHugger Robot
a6b4c528b0 Merge "Support mouse pointer on external displays (2/3)" 2018-12-11 08:54:13 +00:00
Stan Iliev
bc46258527 Fix temporary stretching when Surface is resized with Vulkan
Set NATIVE_WINDOW_SCALING_MODE_FREEZE scaling mode on the surface
after Vulkan swapchain is created. This is the scaling mode used
by GL as well. Window resize flow depends on preserving this
behavior, because SurfaceComposerClient::Transaction::setSize
calls are not postponed until a new buffer is enqueued.

Test: StatusBar is resized correctly without any glitch.
Bug: 118501234
Change-Id: Icfb6805bc362a742e14b993a0b825e5447d6eeb4
2018-12-10 21:54:58 +00:00
Xin Li
75f75c18cc DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master
Bug: 120502534
Change-Id: I7351a1832c4bd2fd86324183ab83e9088d716822
2018-12-10 12:30:19 -08:00
Andrii Kulian
84cdf9cc3b Support mouse pointer on external displays (2/3)
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. Also implements updatePointerDisplay
  to find and associate with the specified display viewport.
- Reload cursor resources if resolution or display changed.

Bug: 113559891
Test: atest inputfliger_tests
Test: ActivityView test app
Change-Id: Ief3410a517be457dfe6f1180342bb1dc88833635
2018-12-10 21:01:05 +08:00
John Reck
4f2b2d6b88 Merge "Revert "Revert "Make HWUI's surface Reliable^TM""" 2018-12-07 22:02:02 +00:00
Mike Reed
05f1d5c04b remove overrides of onDrawText -- no longer called
Skia now routes drawText, drawPosText, drawPosTextH to textblobs, so
these virtuals are no longer needed/called.

Test: make

Change-Id: Ia9d98d6c4ac72cea4ed9ed938b5fd29dbfe8bf49
2018-12-07 08:27:18 -05:00
John Reck
848f651554 Revert "Revert "Make HWUI's surface Reliable^TM""
This reverts commit dd08224e4d.

Bug: 120097554
Bug: 120342364
Bug: 120421537

Test: verified emulator can boot OK, with no log warnings
Test: verified keyboard works in landscape

Change-Id: Iae2cd1140d81755b126adfb21ec885181f3bc6b6
2018-12-06 15:18:27 -08:00
Mike Ma
3505666137 Remove deprecated cutils/log.h
Test: build
Change-Id: I6f9b400173618bdf31ddbd8eacedea62669dfa27
2018-12-06 13:34:21 -08:00
TreeHugger Robot
bc6a68cd08 Merge "Refine incidentd error handling and logging" 2018-12-06 19:12:16 +00:00
John Reck
4f48e9a206 Merge "Fix skp on 32-bit" 2018-12-06 18:55:27 +00:00
TreeHugger Robot
de33723392 Merge "Add non-interop Vulkan functor" 2018-12-06 03:28:22 +00:00
Mike Ma
28381694ab Refine incidentd error handling and logging
Added or changed some error messages and logging for easier debugging.
Log a few section errors to incident metadata in addition to logcat.
Also let incident reporting continue instead of failing when non-fatal
error occurs.

Bug: 119417232
Test: Take an incident report, and logcat.
Change-Id: Id18b7b690100923a8074d99b2312ee80c0bcd760
2018-12-05 19:04:57 -08:00
Chris Blume
4142339381 Add non-interop Vulkan functor
An interop Vulkan functor already exists. It will call the OpenGL
functor and use AHardwareBuffer to translate the OpenGL textures into
something which can be used in Vulkan.

This CL adds the frameworks for a non-interop Vulkan functor. This
functor is not yet complete (and as a result cannot yet be tested). This
is just setting the stage for future work.

Test: This is dead code and cannot yet be tested.
BUG=115613038

Change-Id: I2b87c86cb511abb961c31c17c2fbbc085b07ca4a
2018-12-05 16:26:59 -08:00
Stan Iliev
37e9327eb4 Fix bug in synchronization code for Vulkan WebView
Test: Ran Gmail with Vulkan
Change-Id: I5691819a1b34128bb840f4f2cd04f2edb971edaf
2018-12-05 21:38:50 +00:00
John Reck
7af5b2c653 Fix skp on 32-bit
%d strikes again...

Test: dumped skp on 32bit app
Change-Id: Ica4d9e3939d0e726beb80fbf45a938b004b5eb5d
2018-12-05 13:38:18 -08:00
TreeHugger Robot
85c34682bb Merge "Remove unused HWUI properties." 2018-12-05 16:31:25 +00:00
TreeHugger Robot
d33374530a Merge "use SkTextEncoding" 2018-12-05 14:10:13 +00:00
TreeHugger Robot
764acc461c Merge "Encoding of <overlayable> and <policy>" 2018-12-05 07:06:21 +00:00