Commit c5c35e62 authored by Erik Chen's avatar Erik Chen Committed by Commit Bot

Clean up GpuBenchmarking class.

GpuBenchmarking already has as pointer to a RenderFrame. This CL updates the
helper class GpuBenchmarkingContext to use that pointer to fetch the relevant
objects. This CL is mostly a refactor with no intended behavior change. The big
difference is that it used to use a main frame RenderWidget [which may be undead
and nullptr in the future]. Now it fetches the local root render widget.

Bug: 912193
Change-Id: I6c5bde608c955dc0c8f9383ae40e5fcbc884a08a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838477
Commit-Queue: Erik Chen <erikchen@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Auto-Submit: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703401}
parent b1b11b3b
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment