From d923a71a113d97dc87b4424c25d5b5019331db24 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Wed, 22 Nov 2017 10:11:12 -0500 Subject: Use SkSafeMath for text blob storage calculations Change-Id: I028895dee81d99b1fa2a9acfa3db3f4bcb0f8f64 Reviewed-on: https://skia-review.googlesource.com/73823 Reviewed-by: Herb Derby Commit-Queue: Florin Malita --- include/core/SkTextBlob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/core/SkTextBlob.h b/include/core/SkTextBlob.h index 4457c8f358..a87c9a3d2e 100644 --- a/include/core/SkTextBlob.h +++ b/include/core/SkTextBlob.h @@ -242,7 +242,7 @@ private: void allocInternal(const SkPaint& font, SkTextBlob::GlyphPositioning positioning, int count, int textBytes, SkPoint offset, const SkRect* bounds); bool mergeRun(const SkPaint& font, SkTextBlob::GlyphPositioning positioning, - int count, SkPoint offset); + uint32_t count, SkPoint offset); void updateDeferredBounds(); static SkRect ConservativeRunBounds(const SkTextBlob::RunRecord&); -- cgit v1.2.3