[CodeHealth] Resolve destruction order dangling pointer

Add a CancelAllQueries function to GpuControl to ensure that
all callbacks can be destroyed before the relevant pointers are
attempted to be accessed.

Bug: 1417181
Change-Id: I59212f01d6a2c792b9123104002cb49962f56d84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4664245
Commit-Queue: Jeffrey Cohen <[email protected]>
Reviewed-by: Vasiliy Telezhnikov <[email protected]>
Reviewed-by: Derek Schuff <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1168269}
NOKEYCHECK=True
GitOrigin-RevId: 11a6cad5302f5332aa9ec509017304027446fb1a
2 files changed