IWYU: unique_ptr usage in ChunkedCommandSerializer requires including <memory>

Fix build breakage in libstdc++:
../../third_party/dawn/src/dawn_wire/ChunkedCommandSerializer.h:84:34: error: ‘unique_ptr’ is not a member of ‘std’
   84 |             auto cmdSpace = std::unique_ptr<char[]>(new (std::nothrow) char[requiredSize]);
      |                                  ^~~~~~~~~~
../../third_party/dawn/src/dawn_wire/ChunkedCommandSerializer.h:24:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?

Bug: chromium:957519
Change-Id: I35b129225882a3f9b758c4f49d1a3cace22aacfe
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30600
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Jose Dapena Paz 2020-10-20 19:48:31 +00:00 committed by Commit Bot service account
parent 1877c27c98
commit 1917dc27c2
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include <algorithm>
#include <cstring>
#include <memory>
namespace dawn_wire {