summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Nader Jawad <njawad@google.com> 2023-11-30 20:47:54 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-11-30 20:47:54 +0000
commit1a021abab1475499524237ea2ae880fdd2fbe3f8 (patch)
treef485afeabb92665a4ec08a4a36a942aad01ef0a8 /libs
parentf71100913cf4dbf90d34d1ecb58d1335c93d6080 (diff)
parent8629ed8c3ff6265fe414955e906f074be8eb5dae (diff)
Merge "Fix assertion checks in libs/hwui/Mesh.cpp" into main
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/Mesh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Mesh.cpp b/libs/hwui/Mesh.cpp
index e59bc9565a59..37a7d74330e9 100644
--- a/libs/hwui/Mesh.cpp
+++ b/libs/hwui/Mesh.cpp
@@ -90,8 +90,8 @@ std::tuple<bool, SkString> Mesh::validate() {
FAIL_MESH_VALIDATE("%s mode requires at least %zu vertices but vertex count is %zu.",
modeToStr(meshMode), min_vcount_for_mode(meshMode), mVertexCount);
}
- SkASSERT(!fICount);
- SkASSERT(!fIOffset);
+ LOG_ALWAYS_FATAL_IF(mIndexCount != 0);
+ LOG_ALWAYS_FATAL_IF(mIndexOffset != 0);
}
if (!sm.ok()) {