diff --git a/include/ports/SkFontMgr_indirect.h b/include/ports/SkFontMgr_indirect.h index 52cb450e99..b3f43be875 100644 --- a/include/ports/SkFontMgr_indirect.h +++ b/include/ports/SkFontMgr_indirect.h @@ -29,7 +29,9 @@ public: SkFontMgr_Indirect(SkFontMgr* impl, SkRemotableFontMgr* proxy) : fImpl(SkRef(impl)), fProxy(SkRef(proxy)) { - fOnce = SK_ONCE_INIT; + fOnce.done = false; + fOnce.lock.shouldBeZero = 0; + SkDEBUGCODE(fOnce.lock.thisIsPrivate = 0;) } protected: @@ -64,7 +66,7 @@ private: SkAutoTUnref fProxy; struct DataEntry { - int fDataId; // key1 + uint32_t fDataId; // key1 int fTtcIndex; // key2 SkTypeface* fTypeface; // value: weak ref to typeface diff --git a/src/ports/SkRemotableFontMgr_win_dw.cpp b/src/ports/SkRemotableFontMgr_win_dw.cpp index 50fc5d4a38..45f196b5d4 100644 --- a/src/ports/SkRemotableFontMgr_win_dw.cpp +++ b/src/ports/SkRemotableFontMgr_win_dw.cpp @@ -451,7 +451,8 @@ public: identity); WCHAR str[16]; - UINT32 strLen = SkUTF16_FromUnichar(character, reinterpret_cast(str)); + UINT32 strLen = static_cast( + SkUTF16_FromUnichar(character, reinterpret_cast(str))); SkTScopedComPtr fallbackLayout; HR_GENERAL(dwFactory->CreateTextLayout(str, strLen, fallbackFormat.get(), 200.0f, 200.0f,