Add some missing #includes.

Skia-dawn found these; not sure why Chrome and Dawn standalone don't.

Change-Id: I43706fbaca94d1718de0be727151dd8f3a191df2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9220
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Stephen White 2019-07-19 21:51:09 +00:00 committed by Commit Bot service account
parent 47b107003d
commit 472bd1ec29
4 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,7 @@
#include "common/Platform.h" #include "common/Platform.h"
#include <bitset>
#include <functional> #include <functional>
// Wrapper around std::hash to make it a templated function instead of a functor. It is marginally // Wrapper around std::hash to make it a templated function instead of a functor. It is marginally

View File

@ -19,6 +19,7 @@
#include "dawn_native/DynamicUploader.h" #include "dawn_native/DynamicUploader.h"
#include "dawn_native/ValidationUtils_autogen.h" #include "dawn_native/ValidationUtils_autogen.h"
#include <string.h>
#include <cstdio> #include <cstdio>
#include <utility> #include <utility>

View File

@ -21,6 +21,8 @@
#include "dawn_native/dawn_platform.h" #include "dawn_native/dawn_platform.h"
#include <memory>
namespace dawn_native { namespace dawn_native {
MaybeError ValidateBufferDescriptor(DeviceBase* device, const BufferDescriptor* descriptor); MaybeError ValidateBufferDescriptor(DeviceBase* device, const BufferDescriptor* descriptor);

View File

@ -15,6 +15,8 @@
#include "dawn_native/RingBuffer.h" #include "dawn_native/RingBuffer.h"
#include "dawn_native/Device.h" #include "dawn_native/Device.h"
#include <limits>
// Note: Current RingBuffer implementation uses two indices (start and end) to implement a circular // Note: Current RingBuffer implementation uses two indices (start and end) to implement a circular
// queue. However, this approach defines a full queue when one element is still unused. // queue. However, this approach defines a full queue when one element is still unused.
// //
@ -145,4 +147,4 @@ namespace dawn_native {
return uploadHandle; return uploadHandle;
} }
} // namespace dawn_native } // namespace dawn_native