[Autofill Assistant] Fix to avoid overlay drawing on top of top bar.
With this change, TouchEventFilterView sets a clip rectangle that avoids the top and bottom bars when drawing. This avoids ever drawing on top of either bars and is also more efficient than the previous implementation, which would draw then clear out some section. Additionally, it uses the top visible offset for drawing, instead of the top content offset. There's a difference of a few pixel, which is visible now because of the presence of the blue border. This change also address the CanvasSize lint warning and stops using canvas.getWidth(), as recommended. Bug: b/125245127 Change-Id: I0ced7df06f1ace285525f9b7328204cc79bbad3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1505944 Commit-Queue: Stephane Zermatten <szermatt@chromium.org> Reviewed-by:Jordan Demeulenaere <jdemeulenaere@chromium.org> Cr-Commit-Position: refs/heads/master@{#638533}
Showing
Please register or sign in to comment