Always paint a caret when it's active
When a caret is active, now we always paint it in either the desired color or the transparent color according to the blinking state. This prepares for composited caret which will use an opacity effect node to control the visibility during blinking. The always painted display item for the active caret won't cause performance issue because the paint opearation is trivial. It may actually make PaintController and RasterInvalidator more efficient when matching display items sequentially (without appearing/disappearing display items). Bug: 1123630 Change-Id: I507e1f5014040e8aecceb83346e5f28973f16c4f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391002Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#804064}
Showing
Please register or sign in to comment