|
|
DescriptionRemove no-op grace area touch calibration code
BUG=None
TEST=None
Committed: https://crrev.com/3845fbb8f0f73e3c44137295e73cafadbd6f0068
Cr-Commit-Position: refs/heads/master@{#318993}
Patch Set 1 #
Total comments: 4
Messages
Total messages: 24 (3 generated)
pkotwicz@chromium.org changed reviewers: + skuhne@chromium.org
skuhne@ PTAL https://codereview.chromium.org/872033002/diff/1/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (left): https://codereview.chromium.org/872033002/diff/1/ui/aura/window_tree_host_x11... ui/aura/window_tree_host_x11.cc:152: const int resolution_y = bounds.height(); My understanding is that the following is always true: y < resolution_y https://codereview.chromium.org/872033002/diff/1/ui/aura/window_tree_host_x11... ui/aura/window_tree_host_x11.cc:183: y < resolution_y - top_ + bottom_ * kGraceAreaFraction) My understanding is that this if statement is never run. I think that the ChromeOS devices with touchscreen that we ship either have no bezel or just a bottom bezel?
I think that the code that I have removed is unnecessary, but am not sure. I believe you wrote the original implementation (https://chromiumcodereview.appspot.com/10306014/) so was hoping to get your feedback. https://chromiumcodereview.appspot.com/10306014/ The possible results are: This code is not needed, Yay! This code is needed, so ozone needs to be fixed to do this logic
Please see comments! https://codereview.chromium.org/872033002/diff/1/ui/aura/window_tree_host_x11.cc File ui/aura/window_tree_host_x11.cc (left): https://codereview.chromium.org/872033002/diff/1/ui/aura/window_tree_host_x11... ui/aura/window_tree_host_x11.cc:152: const int resolution_y = bounds.height(); This has to be enabled by the TP driver. It was meant to be used for the Pixel - however - due to bending ghost touch events we disabled these things at the time. But they might come back. Please check with our touch gurus if we have decided to not use bezel anymore. https://codereview.chromium.org/872033002/diff/1/ui/aura/window_tree_host_x11... ui/aura/window_tree_host_x11.cc:183: y < resolution_y - top_ + bottom_ * kGraceAreaFraction) At the moment only the bottom bezel is reliable. Yes. However that might be subject to change. Do we need to keep it around for it? I guess not.
pkotwicz@chromium.org changed reviewers: + sadrul@chromium.org
+touch guru sadrul@
There seems to be a bug about touching the bezel: crbug.com/452076 Does this change affect that in any way?
Nope, kuscher@'s bug has to do with ozone and this CL has to do with X11
Nope, kuscher@'s bug has to do with ozone and this CL has to do with X11
On 2015/01/27 16:44:16, pkotwicz wrote: > Nope, kuscher@'s bug has to do with ozone and this CL has to do with X11 Does ozone actually need something similar to the code being removed? (ie. https://codereview.chromium.org/872033002/#msg3)
If the code in this CL cannot be removed, then ozone would need similar logic, yes. I think that ozone does not properly handle top and left bezels so that would need to be fixed.
For completeness, I fixed the bezel bug in ozone last week. See http://crbug.com/450086
Just for the sake of completeness: This bezel code was trying to address a touch area beyond the display (Pixel was able to give sensor information there). So if we get devices which can do that it might be useful -but if there is no plan for it at the time we could get rid of it.
Cool. Assuming this doesn't cause an obvious regression, lgtm. Ideally we would move TouchEventCalibrate elsewhere so that we don't need to explicitly do the calibration in WindowTreeHostX11, and instead creating a ui::TouchEvent will be auto-calibrated when appropriate.
I am going to take some more time to understand how events in the bezel work on ChromeOS. My understanding is that we use the bottom bezel on the Chromebook Pixel
That is correct - the bottom bezel is still there, but the other bezels (left and right) were there also (I implemented them). However due to HW reasons we turned them off.
lgtm I think that unless we have hardware which uses this, we can remove this for the time being.
Landing this CL. I looked into this some more. The grace area is incorrectly computed for the bottom bezel. Given that only the bottom bezel's enabled, it is worth removing the grace area code.
Landing this CL. I looked into this some more. The grace area is incorrectly computed for the bottom bezel. Given that only the bottom bezel's enabled, it is worth removing the grace area code.
Landing this CL. I looked into this some more. The grace area is incorrectly computed for the bottom bezel. Given that only the bottom bezel's enabled, it is worth removing the grace area code.
The CQ bit was checked by pkotwicz@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872033002/1
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/3845fbb8f0f73e3c44137295e73cafadbd6f0068 Cr-Commit-Position: refs/heads/master@{#318993} |