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>
This commit is contained in:
Herb Derby 2018-05-16 13:08:37 -04:00 committed by Skia Commit-Bot
parent 6c78b2b7cd
commit 3c04226375

View File

@ -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;