diff options
author | Herb Derby <herb@google.com> | 2018-05-16 13:08:37 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-16 17:30:12 +0000 |
commit | 3c042263758ba6f016e1a44edd43eb3508efbb46 (patch) | |
tree | b08f3241f32a74bd1c04a2092c9b8de0f13649b0 /src/core/SkRemoteGlyphCache.h | |
parent | 6c78b2b7cd01525c43939dcee4e5e370a5b66ac2 (diff) |
Fix compiler warning for MSVC
BUG=skia:7954
Change-Id: I2b100f723a88a57aaa4de08860f40ab73b9b674f
Reviewed-on: https://skia-review.googlesource.com/128580
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/core/SkRemoteGlyphCache.h')
-rw-r--r-- | src/core/SkRemoteGlyphCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkRemoteGlyphCache.h b/src/core/SkRemoteGlyphCache.h index 37a49b6a1f..36fe59306b 100644 --- a/src/core/SkRemoteGlyphCache.h +++ b/src/core/SkRemoteGlyphCache.h @@ -147,7 +147,7 @@ public: // create descriptors with out the device filtering, thus matching the key descriptor. std::unique_ptr<SkDescriptor> fDeviceDescriptor; std::unique_ptr<SkDescriptor> fKeyDescriptor; - const SkDiscardableHandleId fDiscardableHandleId = -1; + const SkDiscardableHandleId fDiscardableHandleId = static_cast<SkDiscardableHandleId>(-1); // The context built using fDeviceDescriptor std::unique_ptr<SkScalerContext> fContext; |