diff options
author | Hal Canary <halcanary@google.com> | 2018-04-02 11:36:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-02 17:00:25 +0000 |
commit | e9e19dd4a1fd171b832b03d21d94783d139c6464 (patch) | |
tree | ccee310a278cf2588a40761fc7c10d73ef47e307 /src | |
parent | 7c7ff031a51901f3064d0ceca93c97111c85292e (diff) |
SkPDF/Clusterator: a second test
Change-Id: I805672d88f1c913acba58feca3ad950f5d82884d
Reviewed-on: https://skia-review.googlesource.com/117639
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/pdf/SkClusterator.h | 7 |
1 files changed, 7 insertions, 0 deletions
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(); |