[Live Caption] Ensure that Live Caption text does not render blurrily in
the MediaDialogView. The MediaDialogView paints to layer in order to ensure that corners are rounded (introduced due to crbug.com/992869). The Live Caption toggle label paints to a transparent background, which caused a bug due to subpixel rendering not occurring. This CL takes two approaches: 1. The new EnableMDRounedCornersOnDialogs flag enables rounded corners without needing to paint to layer. When that flag is enabled, we stop painting to layer. 2. When the flag is not enabled, set the background of the Live Caption toggle container to the native theme background so that the background color is opaque rather than transparent. Bug: 1055150, 1139395 Change-Id: Iaf9675e50671b3464c213412698aea3616534643 AX-Relnotes: N/A (Feature not launched yet) Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2490225Reviewed-by:Peter Boström <pbos@chromium.org> Commit-Queue: Abigail Klein <abigailbklein@google.com> Cr-Commit-Position: refs/heads/master@{#820218}
Showing
Please register or sign in to comment