summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2023-12-05 16:59:47 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-12-05 16:59:47 +0000
commit459c2317cc225def777850871f93bd2cfa6edfd4 (patch)
tree11210f68f70b65aa4bec4f4bc6961bff6f3bd313
parenta051175027ce28698c0900203c4338f5583f3259 (diff)
parent906306cacf0dad2d1822ab0eda36fe95ce0e37cf (diff)
downloadnative-459c2317cc225def777850871f93bd2cfa6edfd4.tar.gz
Merge "Fix -Wformat compiler warning" into main
-rw-r--r--libs/renderengine/skia/AutoBackendTexture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/renderengine/skia/AutoBackendTexture.cpp b/libs/renderengine/skia/AutoBackendTexture.cpp
index c412c9cff7..daa42c32b6 100644
--- a/libs/renderengine/skia/AutoBackendTexture.cpp
+++ b/libs/renderengine/skia/AutoBackendTexture.cpp
@@ -91,9 +91,9 @@ void logFatalTexture(const char* msg, const GrBackendTexture& tex, ui::Dataspace
LOG_ALWAYS_FATAL("%s isTextureValid:%d dataspace:%d"
"\n\tGrBackendTexture: (%i x %i) hasMipmaps: %i isProtected: %i texType: %i"
"\n\t\tGrGLTextureInfo: success: %i fTarget: %u fFormat: %u colorType %i",
- msg, tex.isValid(), dataspace, tex.width(), tex.height(), tex.hasMipmaps(),
- tex.isProtected(), static_cast<int>(tex.textureType()), retrievedTextureInfo,
- textureInfo.fTarget, textureInfo.fFormat, colorType);
+ msg, tex.isValid(), static_cast<int32_t>(dataspace), tex.width(), tex.height(),
+ tex.hasMipmaps(), tex.isProtected(), static_cast<int>(tex.textureType()),
+ retrievedTextureInfo, textureInfo.fTarget, textureInfo.fFormat, colorType);
}
sk_sp<SkImage> AutoBackendTexture::makeImage(ui::Dataspace dataspace, SkAlphaType alphaType,