From 6f5515a21e331843dd0cf5a5d7640947317db626 Mon Sep 17 00:00:00 2001 From: Loko Kung Date: Thu, 25 May 2023 23:19:48 +0000 Subject: [PATCH] Adds missing includes for google3 roll. Change-Id: Id99d168d3f127558179c7097af6575f07a260ed6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/134465 Kokoro: Kokoro Reviewed-by: Austin Eng Commit-Queue: Loko Kung Reviewed-by: Shrek Shao --- generator/templates/api_cpp.h | 2 ++ generator/templates/api_cpp_chained_struct.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/generator/templates/api_cpp.h b/generator/templates/api_cpp.h index 4d2a072174..12ce3405e7 100644 --- a/generator/templates/api_cpp.h +++ b/generator/templates/api_cpp.h @@ -25,6 +25,8 @@ #include "dawn/{{api}}_cpp_chained_struct.h" #include "dawn/EnumClassBitmasks.h" #include +#include +#include namespace {{metadata.namespace}} { diff --git a/generator/templates/api_cpp_chained_struct.h b/generator/templates/api_cpp_chained_struct.h index 59a0fd0c19..8c0af4a382 100644 --- a/generator/templates/api_cpp_chained_struct.h +++ b/generator/templates/api_cpp_chained_struct.h @@ -20,6 +20,9 @@ #ifndef {{API}}_CPP_CHAINED_STRUCT_H_ #define {{API}}_CPP_CHAINED_STRUCT_H_ +#include +#include + // This header file declares the ChainedStruct structures separately from the {{metadata.api}} // headers so that dependencies can directly extend structures without including the larger header // which exposes capabilities that may require correctly set proc tables.