From e9e19dd4a1fd171b832b03d21d94783d139c6464 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Mon, 2 Apr 2018 11:36:39 -0400 Subject: SkPDF/Clusterator: a second test Change-Id: I805672d88f1c913acba58feca3ad950f5d82884d Reviewed-on: https://skia-review.googlesource.com/117639 Reviewed-by: Ben Wagner Commit-Queue: Hal Canary --- src/pdf/SkClusterator.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pdf') diff --git a/src/pdf/SkClusterator.h b/src/pdf/SkClusterator.h index db47a5dcdd..97aded2197 100644 --- a/src/pdf/SkClusterator.h +++ b/src/pdf/SkClusterator.h @@ -31,6 +31,13 @@ public: uint32_t fGlyphIndex; uint32_t fGlyphCount; explicit operator bool() const { return fGlyphCount != 0; } + bool operator==(const SkClusterator::Cluster& o) { + return fUtf8Text == o.fUtf8Text + && fTextByteLength == o.fTextByteLength + && fGlyphIndex == o.fGlyphIndex + && fGlyphCount == o.fGlyphCount; + } + }; Cluster next(); -- cgit v1.2.3