Do not offset location by region's origin in V2 hit testing

V2 hit testing (viz hit testing using cc data) only submits regions with
non-zero origins when the region is clipped by other layers. However, in
these cases, if we offset hit test locations by the "clipped" region's
origin, we will get wrong coordinates for the clipped frame.

Since regions submitted by draw quad data provider can have the offset
factor in the transform, we only disable the offsetting for v2 hit test
in this patch.

Bug: 908923
Change-Id: Ie501db968b94a831b33e27bc3a41d5f2fbc4e7a6
Reviewed-on: https://chromium-review.googlesource.com/c/1359324
Reviewed-by: Ria Jiang <riajiang@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Xianda Sun <sunxd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615643}
3 files changed