Make callback in BrowserGpuClientDelegate non-member function
BrowserGpuClientDelegate might have been destroyed when OnEstablishGpuChannel callback is run. Although this callback does not use |this| and just runs the other callback passed to it, it is technically an undefined behavior. Making it a non-member function, helps us avoid this undefined behavior. BUG=872140,872219,872244 Change-Id: Id7641c6c3ff2dcb153e9ed9b245013e878cc947a Reviewed-on: https://chromium-review.googlesource.com/1169964Reviewed-by:Antoine Labour <piman@chromium.org> Commit-Queue: Mohsen Izadi <mohsen@chromium.org> Cr-Commit-Position: refs/heads/master@{#582031}
Showing
Please register or sign in to comment