summaryrefslogtreecommitdiff
path: root/graphics/java
AgeCommit message (Collapse)Author
2021-05-26Merge "Enable dithering on RippleDrawable" into sc-devLucas Dupin
2021-05-26Constant sparkle scaleLucas Dupin
Drawables from different themes are yielding different densities. Framework themes are returning 160 (DENSITY_MEDIUM), while AppCompat is reporting 420 (DENSITY_420.) This is causing the sparkles to have completely different sizes on the same device, which is wrong. Fixes: 189236372 Test: manual Change-Id: Ia79e360123cf740aaba85d5348f07604c2b39026
2021-05-26Enable dithering on RippleDrawableLucas Dupin
Per UX request, given that gradients started to show some banding. Test: manual Fixes: 189281134 Change-Id: I8898f2463c6e07c390c07c242b6632dcbb9c3ef3
2021-05-25Use RobotoStatic-Regular for the weight 400 of roboto familySeigo Nonaka
Bug: 189235998 Test: Manually done Change-Id: I253a72df5641b57d371598cec6853737c5e98ba9
2021-05-25Merge "New shader parameters" into sc-devLucas Dupin
2021-05-25New shader parametersLucas Dupin
- Fading out sparkles earlier - New density and size for sparkles - Overall timing tweaks - New turbulence parameters Test: manual Fixes: 188453593 Fixes: 188454455 Change-Id: I70e364c84cc04f653618ea811a817d9f82895af5
2021-05-21Merge "Skip buffer equality check for SystemFonts" into sc-devSeigo Nonaka
2021-05-21Merge SP1A.210513.004Chris Gross
Change-Id: Ic23aece12c3bbd2b4dcf3205fdbcdd1601deabec
2021-05-20Skip buffer equality check for SystemFontsSeigo Nonaka
All system font files are file backed and stored in the unique place, so no need to compare the buffers during creating sets of system fonts. Bug: 188201287 Test: atest FontFamilyUpdateRequestTest Test: atest FontListParserTest Test: atest FontManagerTest Test: atest NativeSystemFontTest Test: atest PersistentSystemFontConfigTest Test: atest SystemFontsTest Test: atest SystemFontsUniqueNameTest Test: atest UpdatableFontDirTest Test: atest UpdatableSystemFontTest Change-Id: I4a4680937988c013aaa4e4fa729e61ac8514c513
2021-05-18Merge "Fix RadialGradient Javadocs" into sc-devTreeHugger Robot
2021-05-18Fix RadialGradient JavadocsNader Jawad
Fixed issue where Javadoc references were not displayed and the list of circumstances in which exceptions would be thrown was not separated by line breaks Fixes: 188102023 Test: N/A Change-Id: Ibdba7c26e053bdba5d8cff21f1cb7c0764f5a4f1
2021-05-18Merge "Add support to toggle different shader behaviors" into sc-devNader Jawad
2021-05-17Add support to toggle different shaderNader Jawad
behaviors Updated HWUI to toggle overscroll stretch implementation based on whether the device supports high end graphics or not Bug: 187718492 Test: manual Change-Id: I13a91a8861c07bec8af43268ba22d0f5b7060b4f
2021-05-18Merge "refactor pre-rendering feature for BLASTBufferQueue" into ↵Treehugger Robot
s-keystone-qcom-dev
2021-05-17Correctly initialize the noise phaseLucas Dupin
To make it move smoothly throughout the animation Fixes: 186130728 Test: manual Change-Id: I78bb220f72238f13b21055c5874ce8b829171b5d
2021-05-14Add perf test for SystemFonts.getAvailableFontsSeigo Nonaka
Bug: 188201287 Test: atest SystemFontsPerfTest Change-Id: Id08a53e980a012a682e95e7b41d363aae31c1232
2021-05-13Close FDs / mmap handles promptly.Kohsuke Yatoh
Currently we rely on GC to close them. This may cause system_server crash depending on the timing of GC. Bug: 187879195 Test: atest UpdatableSystemFontTest Change-Id: I09ac3f349e5ec100e4164320cbf27977474cc4bb
2021-05-13Merge "Check FontFamily null before adding it." into sc-devJoe Hsu
2021-05-12Merge "Blend premultiplied colors" into sc-devLucas Dupin
2021-05-12Blend premultiplied colorsLucas Dupin
Mixing alpha blended colors, and then premultiplying them in the end was causing artifacts on the sparkles. Bug: 187824279 Test: visual Change-Id: Icde12c3fa737f597f18f2705eefa687a49a19445
2021-05-12Check FontFamily null before adding it.joehsu
Missing ttf files under /product/fonts will cause NullPointerException. This CL fixes it. Bug: 187901462 Test: Flash Sabrina to Android S. Boot to check if there's still an error. Change-Id: I9d39c2a6e4730563f35f43176f630ac0439767b3
2021-05-12refactor pre-rendering feature for BLASTBufferQueueJun Wang
Change-Id: I707155305460089674fd6ce868740aea805d30af CRs-Fixed: 2927513
2021-05-11Enable {ANTI_ALIAS,DITHER}_FLAG by default (1/2)Jordan Demeulenaere
Test: atest android.graphics.cts.PaintTest Bug: 186644628 Change-Id: I5d5d03e430af380e23016c6deba5eca46067a22b
2021-05-07Merge "Update ripple mask when invalidated" into sc-devTreeHugger Robot
2021-05-07Merge "Fix sparkle alpha blending" into sc-devLucas Dupin
2021-05-07Merge "Adding force-dark support to RippleDrawable" into sc-devLucas Dupin
2021-05-06Fix sparkle alpha blendingLucas Dupin
We should not blend between the fill alpha and the sparkle alpha. This would cause the sparkle pixel to have lower opacity than the fill, when the fillAlpha > sparkleAlpha. We do need to blend the fill and sparkle colors, but their alphas need to be combined separately. In the end we then premultiply the alpha into the color. Test: manual Bug: 186130682 Change-Id: I519f6c797839feda14e714c7375ee727aba2cf8b
2021-05-06Adding force-dark support to RippleDrawableLucas Dupin
Add force-dark support to RippleDrawable by modifying the ink color. Test: manual Test: atest CanvasOp Fixes: 186130682 Change-Id: I89eaaf3afa5ec53a74d2d08de8cff6484e55a912
2021-05-05Update Icon find shared library resourcesBrad Stenning
Icon is building its own resource object and not including the default flag that would allow for including of shared-lib resources Bug: 187332041 Test: Manual Change-Id: I121b5f75cbe7d125f8adddb30c84024e2b1a80c7
2021-05-05Update ripple mask when invalidatedJay Aliomer
When a child drawable is updated, the invalidated mask needs to reflect on the animation paint Fixes: 187290156 Test: visual Change-Id: I30065027f73f646c887933648d8e296ec651c299
2021-05-05Merge "Update hole punch logic in HWUI" into sc-devNader Jawad
2021-05-04Merge "Mark first frames in metrics properly" into sc-devJorim Jaggi
2021-05-03Update hole punch logic in HWUINader Jawad
--Updated HWUI holepunch logic for SurfaceView to also apply the stretch to the hole punch --Updated RenderNode callbacks to also include an offset from the ancestor RenderNode that also has a stretch configured on it --Added new test activity to verify hole punch logic Bug: 179047472 Test: manual Change-Id: Ibbaf8248a31839ba9dc352ecb9fef54e1276918e
2021-05-03Merge "Only generate paint/mask bitmap when starting animations" into sc-devJay Aliomer
2021-05-03Only generate paint/mask bitmap when starting animationsJay Aliomer
Fixes: b/185570903 Test: performance testing bitmap threashold Change-Id: Ia94011b3c7c34bf44e9ed7356873748724059c2a
2021-05-03Mark first frames in metrics properlyJorim Jaggi
Such that we only set the flag in case window visibility actually changes. There are a lot of other cases where we need to do a window relayout which can lead to visible jank. Test: FrameMetricsListenerTest, manual Bug: 185902609 Change-Id: Ia09ce640f3a89bf9dd4ff0f4e4469e88a513709a
2021-04-28Skip FontFamily creation if the font files don't exists.Seigo Nonaka
Bug: 186580197 Test: atest FontFamilyUpdateRequestTest FontListParserTest FontManagerTest NativeSystemFontTest PersistentSystemFontConfigTest SystemFontsTest SystemFontsUniqueNameTest UpdatableFontDirTest UpdatableSystemFontTest Change-Id: Ibbcfb9ed43d05dd9db0132f3a7cb0321243be054
2021-04-27Merge "Fix that CSL cache hits produce bad drawables" into sc-devJohn Reck
2021-04-26Fix that CSL cache hits produce bad drawablesJohn Reck
onState() needs to be called to initialize the color to be drawn with. ColorStateListDrawable(ColorStateList) does this as part of the call to setColorStateList(), however this was missing from ColorStateListDrawable(ColorStateListDrawableState) which is hit when doing ColorStateListDrawableState#newDrawable() when Resources has a cache-hit on a drawable to load. Fixes: 186254988 Test: app in bug Change-Id: Ifb3626f6f85b03dd66142a2f91ba06bc648bff16
2021-04-26Merge "Update frameworks/base to use newer SkRuntimeEffect::MakeForShader" ↵Brian Osman
into sc-dev
2021-04-26Merge "Fix a potential thread safety issue in VectorDrawable" into sc-devTreeHugger Robot
2021-04-26Update frameworks/base to use newer SkRuntimeEffect::MakeForShaderBrian Osman
This enforces stricter rules on the SkSL at effect creation time, and ensures it's valid as an SkShader (vs. an SkColorFilter). Also updated some SkSL that was already (or would become) illegal: - Child shaders must be declared 'uniform', not 'in' - sampling a child requires coordinates Bug: skia:11813 Change-Id: I743b985b5012723186a43e58e9e3ccf29d809d2b (cherry picked from commit 7556777511b46a0c1a4cdab55d8ba59d99f7c328)
2021-04-22Fix a potential thread safety issue in VectorDrawableJohn Reck
Bug: 158839504 Test: speculative Change-Id: Id9f229f08fe5897dda25441fbaa15c98f8130de9
2021-04-22Use PostScript name as a key of updated font mapSeigo Nonaka
Bug: 185818011 Test: atest FontManagerTest Test: atest UpdatableFontDirTest Test: atest UpdatableSystemFontTest Test: atest FontFamilyUpdateRequestTest Test: atest PersistentSystemFontConfigTest Test: atest SystemFontsUniqueNameTest Change-Id: I78e6ee962dbd50201105599361727b71de11cf2a
2021-04-21Merge "Clamp ink color alpha" into sc-devLucas Dupin
2021-04-20Clamp ink color alphaLucas Dupin
On the old version of the ripple, the alpha is limited to 50%, we should also do the same on the latest designs. Bug: 184165556 Test: manual Change-Id: Iec14394e0a0bca00283a713a409dd0794eb6fb9a
2021-04-19More subtle sparkle animationLucas Dupin
- Reduce sparkle size - Make sparkles fade out earlier - Adjust animation duration Test: visual Fixes: 185826327 Change-Id: I477300f861dad4ec489b7a4d36b0ed7d75bf72e8
2021-04-19Merge "Make sparkle color and alpha customizable" into sc-devLucas Dupin
2021-04-19Make sparkle color and alpha customizableLucas Dupin
This CL introduces a new attr: effectColor. The attribute can be used on ripple tags to customize the color and alpha of the ripple decoration. It's also possible to change the effect color via code by invoking RippleDrawable#setEffectColor. Fixes: 185602477 Test: atest RippleDrawableTest Change-Id: I9b50f330729a67ef4b529283a92c83c28387fa0b
2021-04-19Merge "Webview overlay support" into sc-devHuihong Luo