Commit Graph

9698 Commits

Author SHA1 Message Date
Anton Hansson
47ee291898 Merge "androidfw changes to support /product-services." 2018-08-22 13:58:00 +00:00
Ben Wagner
1d155336a8 Remove use of SkTLazy.
Skia is planning to make SkTLazy private to Skia. This changes uses of
SkTLazy to std::optional.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: Id92c27cb8b3b41eb2e531b1a930511064a47a6f7
2018-08-21 11:11:37 -04:00
Greg Daniel
7fd08795de Merge "Update VulkanManager to use new skia Vulkan context api." 2018-08-20 20:11:46 +00:00
Greg Daniel
a227dbb322 Update VulkanManager to use new skia Vulkan context api.
Test: manual build and run on phone.
Change-Id: Ib21f4091cf11de5655323337e86a35cb7b845b15
2018-08-20 13:23:41 -04:00
Dario Freni
4ce4679309 androidfw changes to support /product-services.
See CL I7a6a30bf8e8db9f2738594d187bb9148f138b8da for a more detailed
description of the change.

Test: see CL I7a6a30bf8e8db9f2738594d187bb9148f138b8da description
Bug: 80741439
Change-Id: I6cc9d713c07c319fc2ee1c531af41243bd1d4aee
2018-08-17 16:34:18 +00:00
Derek Sollenberger
333a83c02f Prefer ES 2.0 with external image support vs ES 3.0 without that support
We currently attempt to use ES 3.0 shaders even if it lacks the
extension for external images.  This CL reverts back to ES 2.0 in
the event that we find that the OES_EGL_image_external_essl3 is not
present.

Test: no change in graphics output
Bug: 111220579
Change-Id: I6bd7145026d9686cfcf49393a19580208db8a367
2018-08-15 10:17:45 -04:00
John Reck
4d7c62b0f2 Remove unused library dependency
Test: builds
Change-Id: I38e2672238e4571b9236621528e5b362039de03d
2018-08-02 16:33:21 -07:00
Stan Iliev
038fc3732d Set bilinear filter quality when drawing VectorDrawable
Set filter quality to GL_LINEAR, when drawing
VectorDrawable cache into the frame buffer.

Bug: 77841258
Test: Search bar icon jagged edge in launcher fixed
Change-Id: I91270f64964ae3ba7a47264aec395bc2c2d9e968
2018-07-31 15:11:31 +00:00
TreeHugger Robot
96fb339b4b Merge "Have the framework setup android defines for including vulkan.h" 2018-07-27 14:20:34 +00:00
Florin Malita
aee140c8b6 Remove SkiaCanvasProxy
No longer being used.

Change-Id: Iae2c1938522b7802c4d38a04a365ad8881f3c4aa
2018-07-26 14:12:08 -04:00
Greg Daniel
22cc59dd3a Have the framework setup android defines for including vulkan.h
We're moving skia to place where it has its own vulkan header and
the clients have theirs. So this sets up the VulkanManager to be
able to handle including vulkan.h how it wants to.

Test: manual building and running

Change-Id: I0818d2fc607bf8a265bf6ddf1e2f737d1228131a
2018-07-24 13:47:48 -04:00
John Reck
fbd7479ba5 Merge "More auto-dark stuff" 2018-07-23 23:28:40 +00:00
John Reck
339cf9b327 More auto-dark stuff
Initial attempt at selective bitmap inverting
Use CIE_LAB colorspace for inverting instead of HSV

Test: Manually poking around
Change-Id: I014ff31eeae471ee7f6a40a6daa4e7099c2a7ff8
2018-07-19 15:58:39 -07:00
Jorim Jaggi
edf3e1fa2e Merge "Move allocateBuffers to RT" into pi-dev am: 2f8a3a4bb8
am: c9756c9193

Change-Id: Ieed40312fe16a54c3e1974621b53e29b23ddcdbc
2018-07-18 15:19:39 -07:00
Jorim Jaggi
c9756c9193 Merge "Move allocateBuffers to RT" into pi-dev
am: 2f8a3a4bb8

Change-Id: I6c8f84406a40fa324a4486f71fccf01f6acfe60a
2018-07-18 15:06:29 -07:00
Jorim Jaggi
2f8a3a4bb8 Merge "Move allocateBuffers to RT" into pi-dev 2018-07-18 21:47:59 +00:00
Jorim Jaggi
7823ee73ee Move allocateBuffers to RT
Such that it gets executed after setSurface, in order that
mReqUsage has the correct flags set.

Test: Take trace, ensure that allocateBuffers actually allocates
in the right format/usage by ensuring that dequeueBuffer doesn't
trash them immediately again.
Bug: 111517695
Change-Id: I94b402d7b29d565155a77a2d09106246261712d2
2018-07-17 17:34:49 +02:00
Stan Iliev
aac878f108 Fix TextureView.getBitmap with scale layer transform
Fix TextureView.getBitmap to capture content only from the layer.

Bug: 111401911
Test: A new test TextureViewTest.testTransformScale is passing
Change-Id: I2b9cee17fc48de7b12ed03d5b4f173ce5445dbfe
2018-07-17 13:39:54 +00:00
Todd Kennedy
c7d7611719 Merge "Loosen resource file verification" into pi-dev am: cf0b127110
am: 60413d0697

Change-Id: I95400ba3a885605bc52df10968ef2b4adf7f90a6
2018-07-16 14:31:10 -07:00
Todd Kennedy
60413d0697 Merge "Loosen resource file verification" into pi-dev
am: cf0b127110

Change-Id: I0b4012085579aa172a1a3f5a83325f0827523af5
2018-07-16 14:15:09 -07:00
Todd Kennedy
28e663cbed Loosen resource file verification
Bug: 77808145
Test: Tried to install corrupt APK prior to the change, install failed
Test: Tried to install corrupt APK after the change, install succeeded
Test: atest CtsAppSecurityHostTestCases:CorruptApkTests
Change-Id: I19a69e52a17c1080beaf2cc575c32f564b1033a3
2018-07-16 20:52:55 +00:00
Greg Daniel
4aa5867051 No longer create a GrVkInterface in the VulkanManger.
Test: manual

Change-Id: I5debded1f42cab60bacd3b9b9d2f10ada088c86a
2018-07-13 14:04:55 -04:00
TreeHugger Robot
27cfaae798 Merge "Remove use of SkRefCnt_SafeAssign." 2018-07-12 20:24:24 +00:00
Ben Wagner
c1a8a46fd4 Remove use of SkRefCnt_SafeAssign.
Update pointer to SkRefCnt fields which require it to sk_sp.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: I4f3eb790ee67c09746708458c4492569b64cc58f
2018-07-12 19:19:53 +00:00
John Reck
e5a55523d6 Merge "Merge "Disable LTO on -eng" am: 1918b39942 am: af3e763358" into pi-dev-plus-aosp
am: 7ac9ac5605

Change-Id: I7b048d8897006ba3e0772a9c6e60ecfed0cbe2a8
2018-07-11 16:03:35 -07:00
John Reck
888f73388b Merge "Disable LTO on -eng" am: 1918b39942
am: af3e763358

Change-Id: I5146424fc06ad7c62088a0ac6f957e0a02b0ec66
2018-07-11 15:09:34 -07:00
John Reck
af3e763358 Merge "Disable LTO on -eng"
am: 1918b39942

Change-Id: I925182b722d7bf6b1bb63c298a8ec9e345f0c4ac
2018-07-11 14:48:50 -07:00
Ben Wagner
81926cfbe7 Merge "Replace SkDrawFilter with PaintFilter." 2018-07-11 19:36:52 +00:00
John Reck
2729418128 Disable LTO on -eng
Speeds up incremental compile of one cpp file change
from over a minute to around 15 seconds

Bug: 111277863
Test: touch a .cpp file in hwui & mmm
Change-Id: I946ecad411a7a59f87ed9e1eeb146d6f57bd038a
2018-07-11 18:24:58 +00:00
Ben Wagner
0ed10bedbb Replace SkDrawFilter with PaintFilter.
Skia is removing SkDrawFilter.

Test: refactoring CL. Existing unit tests still pass.
Change-Id: If81c1a2feabf7d377ae1d7bcb3e8cf0f599ad3ce
2018-07-11 12:07:22 -04:00
John Reck
b91ec50287 Fix NPE in makeTransformCanvas
Test: builds && hwuiunit passes
Change-Id: Ie728832352b3652630c11bdb3115872482f12923
2018-07-10 09:14:57 -07:00
TreeHugger Robot
d57794b1be Merge "Auto-dark mode prototype" 2018-07-10 00:02:26 +00:00
Haibo Huang
50621368c8 Merge "Remove CSV support" am: 0faecf7b89 am: 9fada2364f
am: 6fc2f09b35

Change-Id: I28d0bae71507247125daadf39313a9dab5b284fd
2018-07-09 15:56:22 -07:00
Haibo Huang
6fc2f09b35 Merge "Remove CSV support" am: 0faecf7b89
am: 9fada2364f

Change-Id: Ibf1fe01c8e69407decf760307ad3747f1c3cb317
2018-07-09 15:44:54 -07:00
Haibo Huang
9fada2364f Merge "Remove CSV support"
am: 0faecf7b89

Change-Id: I02e8b74299afda2642567e3fcf9a41653cb7b888
2018-07-09 14:41:03 -07:00
John Reck
9ce2bf7e0c Auto-dark mode prototype
Experimental force_dark prototype mode. Enabled
by setting debug.hwui.force_dark to true.

Test: verified nothing changes without prop being set

Change-Id: Ib02f3f1a9c591cab1f312b827451f04c782c2f41
2018-07-09 10:16:25 -07:00
Haibo Huang
783d76ec31 Remove CSV support
CSV is deprecated upstream. See:
7b8d0249d8

Test: m checkbuild
Change-Id: I4b85535d4296c6f0d1f0eec95b40c065b3143134
2018-07-06 16:55:27 -07:00
Stan Iliev
5d03348436 Fix path rendering issues
Fix remaining battery icon. Disable CCPR, which seems to
have caused a regression.


Test: Ran SystemUI and battery icon is drawn white.
Bug: skbug.com/8127
Change-Id: Ic82bce14b760a8889ea2261c44b2631dc755288f
2018-07-03 19:50:06 +00:00
Stan Iliev
02daab6ff2 Add a debug property to enable Skia systrace
Add a "debug.hwui.skia_atrace_enabled" property that allows to
record a systrace with skia drawing ops. App need to be restarted
after setting the new propety to true.

Test: collected skia trace with systemui
Change-Id: I2d1c5911714bfc911894f633ec2df2f6bb953b48
2018-07-02 13:45:53 +00:00
Sundong Ahn
faa0516e0b Merge "Build com.android.future.usb.accessory with java_sdk_library" am: 10cfc61774 am: 35d6bafc57
am: 3be9f7072a

Change-Id: I737cd14d3af988abde8c60d061d1c3526ad40749
2018-06-28 21:12:16 -07:00
Sundong Ahn
3be9f7072a Merge "Build com.android.future.usb.accessory with java_sdk_library" am: 10cfc61774
am: 35d6bafc57

Change-Id: I205f0f1811b68aa41d105fbd8db24db52ae2d35e
2018-06-28 20:53:52 -07:00
Sundong Ahn
35d6bafc57 Merge "Build com.android.future.usb.accessory with java_sdk_library"
am: 10cfc61774

Change-Id: Ie6abdaa1c9f58ada60da5514bbd1ed261d09fd0b
2018-06-28 20:38:09 -07:00
Treehugger Robot
10cfc61774 Merge "Build com.android.future.usb.accessory with java_sdk_library" 2018-06-29 02:51:43 +00:00
Josh Gao
1c300861d2 Fix memory leak in RenderThread::dumpGraphicsMemory.
This would have been a double-close of fd, except we just leak the
FILE* instead.

Test: treehugger
Change-Id: I519366fbcf0eb6f03f79c22abfa2b1b1b493a70a
2018-06-26 12:37:42 -07:00
Stan Iliev
da3fb57d52 Merge "Don't apply filter in readback, when there is no scaling" into pi-dev am: cea247e135
am: a69eae92c7

Change-Id: Ifa0e178e5c59780461f083d3527594ebe78c50c8
2018-06-25 16:43:38 -07:00
Stan Iliev
a69eae92c7 Merge "Don't apply filter in readback, when there is no scaling" into pi-dev
am: cea247e135

Change-Id: Ibfcc41e052376d159886410d11130bb89ade168d
2018-06-25 16:33:36 -07:00
Stan Iliev
d50edd004b Don't apply filter in readback, when there is no scaling
Fix check for scaling in SkiaOpenGLReadback: old code was not
taking into account that matrix rotation swaps width/height.

Test: Passed PixelCopyTest#testWindowProducerCopyToRGBA16F
Bug: 110097060
Change-Id: I0d26416fa72a026bc376417773d5a73548b1f1a5
2018-06-22 17:33:43 -04:00
Greg Daniel
2f9d8670e3 Remove unused member in VulkanManager.
A large part of the previous change was specifically around removing
this ref counted data member, and then I just forgot to delete it...

Test: manual testing

Change-Id: Ie9a7f7495789d45a65900c08a27a9d83ad64617c
2018-06-22 11:46:18 -04:00
Greg Daniel
841f7c2f0c Merge "Manually create and manage vulkan instance and device." 2018-06-22 13:27:12 +00:00
zhangkuili
b92c853845 Merge "[Stability][hwui] check mmap return value" am: b352dcd153 am: 399ac24bdf
am: 4fe18f31d5

Change-Id: Id8e6045310f3b480649dbe097f60da2a293603d4
2018-06-21 15:37:01 -07:00