mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +00:00
This patch fixes a crash issue when the device is destroyed before the callback of CreateReady{Render, Compute}Pipeline is called. Now when the callback is called in DeviceBase::ShutDown(), the cached pipeline object will also be destroyed before the callback returns. BUG=dawn:529 TEST=dawn_end2end_tests Change-Id: I91ec2608b53591d265c0648f5c02daf7fadac85e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30744 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>