Separate device lost from internal errors.

The effect to the user is the same, the Dawn device gets lost. However
we need to make the difference internally because when the backend
device is lost we can clean up immediately. On the contrary on internal
errors, the backend device is still alive and processing commands so we
need to gracefully shut it down.

Bug: dawn:269

Change-Id: Ie13b33a4f9ac2e1f5f98b3723d83cf1c6205c988
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/17965
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Corentin Wallez
2020-04-01 12:07:43 +00:00
committed by Commit Bot service account
parent 3da19b843f
commit a0afd31585
31 changed files with 157 additions and 78 deletions

View File

@@ -49,8 +49,7 @@ namespace dawn_native {
};
void AppendBacktrace(const char* file, const char* function, int line);
InternalErrorType GetInternalType() const;
wgpu::ErrorType GetType() const;
InternalErrorType GetType() const;
const std::string& GetMessage() const;
const std::vector<BacktraceRecord>& GetBacktrace() const;