From bab0bb371f1f838e9eee78221c969e83da2d1368 Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Tue, 17 Jan 2023 15:30:34 +0000 Subject: [PATCH] Remove usage of SK_MaxS32 This will be removed from the public API. skbug.com/13983 Change-Id: I4b4e6a8f2f5b8e1bb2633062f347e807703add78 --- libs/hwui/jni/BitmapFactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/hwui/jni/BitmapFactory.cpp b/libs/hwui/jni/BitmapFactory.cpp index 320d3322904fa..c98b87a5b924d 100644 --- a/libs/hwui/jni/BitmapFactory.cpp +++ b/libs/hwui/jni/BitmapFactory.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include jfieldID gOptions_justBoundsFieldID; @@ -142,7 +143,7 @@ public: } const size_t size = info.computeByteSize(bitmap->rowBytes()); - if (size > SK_MaxS32) { + if (size > INT32_MAX) { ALOGW("bitmap is too large"); return false; }