mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-12 16:15:55 +00:00
The existing implementation of Result with tagged pointers was not able to handle constant pointers for the result. This is required in follow-up CLs to return internal formats in a ResultOrError. This CL extracts the tagged pointer logic out of Result<T*, E*> so it can be shared with Result<const T*, E*>. Tests are also added to cover Result<const T*, E*>. BUG=dawn:128 Change-Id: Id19ae8e1153bcfcaf94d95ac314faf2b23af6f91 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9100 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>