Cache referenced RenderPassDrawQuad when creating hit-test data.

A RenderPassDrawQuad can be referenced many times, cache the result
to avoid unnecessary re-computing.

Bug: 947031
Test: viz_unittests
Change-Id: I59c790d3f7e357e5af50c5c780d8078e975ac3cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1555071
Reviewed-by: Robert Kroeger <rjkroege@chromium.org>
Commit-Queue: Ria Jiang <riajiang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652176}
2 files changed