Sanitizer fixes (#2280)

This commit is contained in:
Tim Sylvester
2024-04-29 06:33:08 -07:00
committed by GitHub
parent 6ebbc3dd6a
commit cd9727b06f
14 changed files with 85 additions and 37 deletions

View File

@@ -3,10 +3,11 @@
// Forward-declarations for metal-cpp types, allowing
// references without including any third-party headers
#include <memory>
#include <cstdint>
namespace CA {
class MetalDrawable;
class MetalLayer;
} // namespace CA
namespace NS {
@@ -39,7 +40,9 @@ class VertexDescriptor;
namespace mbgl {
namespace mtl {
using CAMetalDrawablePtr = NS::SharedPtr<CA::MetalDrawable>;
using CAMetalLayerPtr = NS::SharedPtr<CA::MetalLayer>;
using MTLBlitCommandEncoderPtr = NS::SharedPtr<MTL::BlitCommandEncoder>;
using MTLBlitPassDescriptorPtr = NS::SharedPtr<MTL::BlitPassDescriptor>;

View File

@@ -1,8 +1,8 @@
#pragma once
#include <mbgl/style/layers/custom_layer_render_parameters.hpp>
#include <mbgl/mtl/mtl_fwd.hpp>
#include <Foundation/Foundation.hpp>
#include <Metal/Metal.hpp>