• Erik Chen's avatar
    Clean up GpuBenchmarking class. · c5c35e62
    Erik Chen authored
    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}
    c5c35e62
gpu_benchmarking_extension.cc 42.7 KB