diff options
author | Khushal <khushalsagar@chromium.org> | 2018-06-13 09:44:23 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-13 17:10:56 +0000 |
commit | 4010c792c6bd0378087225ae16b0131bd2c303f2 (patch) | |
tree | 0f09301a1539664603f285ad991e677abda04ebc /src/core/SkGlyph.h | |
parent | c6530d1e5ecce640e0255d66a01f9db73add7df9 (diff) |
fonts: Ignore re-initialization of fallback glyphs from the server.
If the client finds that the server re-initializes a cached path/image,
we consider this an error and invalid data. But since we might
initialize a glyph using a fallback on the client, and receive the
correct version from the server later, this is not longer true.
Bug: 829622
Change-Id: I34ab17b54139d89a15179265d4aed4a1fe36fd47
Reviewed-on: https://skia-review.googlesource.com/133566
Commit-Queue: Khusal Sagar <khushalsagar@chromium.org>
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/core/SkGlyph.h')
-rw-r--r-- | src/core/SkGlyph.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/SkGlyph.h b/src/core/SkGlyph.h index 06c0e422ce..3ea795b928 100644 --- a/src/core/SkGlyph.h +++ b/src/core/SkGlyph.h @@ -85,6 +85,12 @@ struct SkPackedID { return SkChecksum::CheapMix(fID); } + SkString dump() const { + SkString str; + str.appendf("code: %d, x: %d, y:%d", code(), getSubXFixed(), getSubYFixed()); + return str; + } + private: static unsigned ID2SubX(uint32_t id) { return id >> (kSubShift + kSubShiftX); @@ -143,8 +149,8 @@ class SkGlyph { public: static const SkFixed kSubpixelRound = SK_FixedHalf >> SkPackedID::kSubBits; - void* fImage; - PathData* fPathData; + void* fImage; + PathData* fPathData; float fAdvanceX, fAdvanceY; uint16_t fWidth, fHeight; |