[Impeller] Include cstdint everywhere that uint32_t is used. (flutter/engine#47533)

Sprinkle cstdint everywhere that it's used. Unblocks the next impeller-cmake bump.

Ran into include issues during the build for the most recent impeller-cmake bump: https://github.com/bdero/impeller-cmake/pull/20

Going to add an optional libcxx STL build to help avoid stuff like this later (in the AAOS action items).
This commit is contained in:
Brandon DeRosier
2023-10-31 18:42:14 -07:00
committed by GitHub
parent 7cf7fc7d1c
commit 480a99ac7e
38 changed files with 53 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <limits>
#include <memory>

View File

@@ -4,6 +4,7 @@
#include "impeller/compiler/compiler.h"
#include <cstdint>
#include <filesystem>
#include <memory>
#include <optional>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <variant>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <optional>

View File

@@ -5,6 +5,7 @@
#include "impeller/compiler/runtime_stage_data.h"
#include <array>
#include <cstdint>
#include <optional>
#include "inja/inja.hpp"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <string>
#include <vector>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <vector>
#include "flutter/fml/macros.h"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <utility>
#include <variant>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <iostream>
#include <memory>

View File

@@ -4,6 +4,8 @@
#include "impeller/compiler/uniform_sorter.h"
#include <cstdint>
namespace impeller {
std::vector<spirv_cross::ID> SortUniforms(

View File

@@ -5,6 +5,7 @@
#pragma once
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string_view>
#include <vector>

View File

@@ -4,14 +4,13 @@
#pragma once
#include <variant>
#include <cstdint>
#include "impeller/core/capture.h"
#include "impeller/entity/contents/contents.h"
#include "impeller/geometry/color.h"
#include "impeller/geometry/matrix.h"
#include "impeller/geometry/path.h"
#include "impeller/geometry/rect.h"
#include "impeller/image/decompressed_image.h"
namespace impeller {

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>

View File

@@ -4,6 +4,8 @@
#pragma once
#include <cstdint>
#include "impeller/entity/entity_pass_target.h"
#include "impeller/renderer/context.h"
#include "impeller/renderer/render_pass.h"

View File

@@ -7,6 +7,7 @@
#include <stdint.h>
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <type_traits>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <vector>

View File

@@ -6,6 +6,7 @@
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <ostream>
#include <string>
#include <type_traits>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include "flutter/fml/macros.h"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <deque>
#include <thread>

View File

@@ -4,6 +4,8 @@
#include "impeller/renderer/backend/gles/render_pass_gles.h"
#include <cstdint>
#include "GLES3/gl3.h"
#include "flutter/fml/trace_event.h"
#include "fml/closure.h"

View File

@@ -13,6 +13,7 @@
#include "impeller/renderer/backend/vulkan/vk.h"
#include <array>
#include <cstdint>
#include <memory>
namespace impeller {

View File

@@ -3,6 +3,9 @@
// found in the LICENSE file.
#include "impeller/renderer/backend/vulkan/android_hardware_buffer_texture_source_vk.h"
#include <cstdint>
#include "impeller/renderer/backend/vulkan/texture_source_vk.h"
#ifdef FML_OS_ANDROID

View File

@@ -4,6 +4,8 @@
#include "impeller/renderer/backend/vulkan/blit_command_vk.h"
#include <cstdint>
#include "impeller/renderer/backend/vulkan/command_encoder_vk.h"
#include "impeller/renderer/backend/vulkan/texture_vk.h"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <map>
#include <set>
#include <string>

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <functional>
#include <optional>

View File

@@ -4,6 +4,8 @@
#pragma once
#include <cstdint>
#include "flutter/fml/macros.h"
#include "fml/status_or.h"
#include "impeller/renderer/backend/vulkan/device_holder.h"

View File

@@ -4,6 +4,8 @@
#pragma once
#include <cstdint>
#include "flutter/fml/macros.h"
#include "impeller/base/validation.h"
#include "impeller/core/formats.h"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <optional>
#include "flutter/impeller/renderer/backend/vulkan/vk.h"

View File

@@ -5,6 +5,7 @@
#include "impeller/renderer/backend/vulkan/pipeline_library_vk.h"
#include <chrono>
#include <cstdint>
#include <optional>
#include <sstream>

View File

@@ -4,6 +4,8 @@
#include "impeller/renderer/backend/vulkan/shader_library_vk.h"
#include <cstdint>
#include "flutter/fml/logging.h"
#include "flutter/fml/trace_event.h"
#include "impeller/renderer/backend/vulkan/context_vk.h"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <variant>

View File

@@ -3,9 +3,12 @@
// found in the LICENSE file.
#include "impeller/renderer/backend/vulkan/test/mock_vulkan.h"
#include <cstdint>
#include <cstring>
#include <utility>
#include <vector>
#include "fml/macros.h"
#include "fml/thread_local.h"
#include "impeller/base/thread_safety.h"

View File

@@ -4,6 +4,8 @@
#include "impeller/renderer/backend/vulkan/vertex_descriptor_vk.h"
#include <cstdint>
namespace impeller {
vk::Format ToVertexDescriptorFormat(const ShaderStageIOSlot& input) {

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <map>
#include <memory>
#include <optional>

View File

@@ -4,6 +4,8 @@
#include "impeller/renderer/compute_tessellator.h"
#include <cstdint>
#include "impeller/renderer/command_buffer.h"
#include "impeller/renderer/path_polyline.comp.h"
#include "impeller/renderer/pipeline_library.h"

View File

@@ -4,6 +4,7 @@
#pragma once
#include <cstdint>
#include <memory>
#include <mutex>

View File

@@ -4,6 +4,7 @@
#include "impeller/scene/importer/vertices_builder.h"
#include <cstdint>
#include <cstring>
#include <limits>
#include <memory>

View File

@@ -4,6 +4,8 @@
#pragma once
#include <cstdint>
#include "impeller/geometry/path_builder.h"
#include "impeller/tessellator/tessellator.h"