Files prefix changed from MGL to MLN (#919)

This commit is contained in:
Alex Cristici
2023-03-21 14:18:26 +02:00
committed by GitHub
parent 35a8752083
commit d72cd766c8
467 changed files with 13884 additions and 13872 deletions

View File

@@ -1,4 +1,4 @@
#include <mbgl/util/image+MGLAdditions.hpp>
#include <mbgl/util/image+MLNAdditions.hpp>
#import <ImageIO/ImageIO.h>
@@ -11,7 +11,7 @@ using CGDataProviderHandle = CFHandle<CGDataProviderRef, CGDataProviderRef, CGDa
using CGColorSpaceHandle = CFHandle<CGColorSpaceRef, CGColorSpaceRef, CGColorSpaceRelease>;
using CGContextHandle = CFHandle<CGContextRef, CGContextRef, CGContextRelease>;
CGImageRef CGImageCreateWithMGLPremultipliedImage(mbgl::PremultipliedImage&& src) {
CGImageRef CGImageCreateWithMLNPremultipliedImage(mbgl::PremultipliedImage&& src) {
// We're converting the PremultipliedImage's backing store to a CGDataProvider, and are taking
// over ownership of the memory.
CGDataProviderHandle provider(CGDataProviderCreateWithData(
@@ -41,7 +41,7 @@ CGImageRef CGImageCreateWithMGLPremultipliedImage(mbgl::PremultipliedImage&& src
NULL, false, kCGRenderingIntentDefault);
}
mbgl::PremultipliedImage MGLPremultipliedImageFromCGImage(CGImageRef src) {
mbgl::PremultipliedImage MLNPremultipliedImageFromCGImage(CGImageRef src) {
const size_t width = CGImageGetWidth(src);
const size_t height = CGImageGetHeight(src);
@@ -89,7 +89,7 @@ PremultipliedImage decodeImage(const std::string& source) {
throw std::runtime_error("CGImageSourceCreateImageAtIndex failed");
}
return MGLPremultipliedImageFromCGImage(*image);
return MLNPremultipliedImageFromCGImage(*image);
}
} // namespace mbgl