New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 834036 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 732400



Sign in to add a comment

Add an API to HitTestQuery to get the transform from root to target

Project Member Reported by riajiang@chromium.org, Apr 17 2018

Issue description

need to add an API to HitTestQuery to get the transform from root to target:

1) we don't always have the entire ancestor array to a given target
2) sometimes we want transform between two views, not only from root


 
Project Member

Comment 1 by bugdroid1@chromium.org, Apr 19 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a7fb65b37ee697d7d0a44534a24eab24ee5d833c

commit a7fb65b37ee697d7d0a44534a24eab24ee5d833c
Author: Ria Jiang <riajiang@chromium.org>
Date: Thu Apr 19 06:39:04 2018

Add an API to HitTestQuery to get the transform from root to target.

Add an API to HitTestQuery to get the transform from root to target in
physical pixels. The transform is a matrix A such that for a point P in
the root coordinate system, A*P -> P' where P' is in the target
coordinate system.

Bug: 834036
Test: viz_unittests
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: I7fa4ec9728966b25637759b46f43c01db3bb4008
Reviewed-on: https://chromium-review.googlesource.com/1015789
Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: Robert Kroeger <rjkroege@chromium.org>
Commit-Queue: Ria Jiang <riajiang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551957}
[modify] https://crrev.com/a7fb65b37ee697d7d0a44534a24eab24ee5d833c/components/viz/host/hit_test/hit_test_query.cc
[modify] https://crrev.com/a7fb65b37ee697d7d0a44534a24eab24ee5d833c/components/viz/host/hit_test/hit_test_query.h
[modify] https://crrev.com/a7fb65b37ee697d7d0a44534a24eab24ee5d833c/components/viz/host/hit_test/hit_test_query_unittest.cc

Sign in to add a comment