Fix r13897.
git-svn-id: http://skia.googlecode.com/svn/trunk@13898 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
72cf4fcafa
commit
3d21f21cac
@ -29,7 +29,9 @@ public:
|
|||||||
SkFontMgr_Indirect(SkFontMgr* impl, SkRemotableFontMgr* proxy)
|
SkFontMgr_Indirect(SkFontMgr* impl, SkRemotableFontMgr* proxy)
|
||||||
: fImpl(SkRef(impl)), fProxy(SkRef(proxy))
|
: fImpl(SkRef(impl)), fProxy(SkRef(proxy))
|
||||||
{
|
{
|
||||||
fOnce = SK_ONCE_INIT;
|
fOnce.done = false;
|
||||||
|
fOnce.lock.shouldBeZero = 0;
|
||||||
|
SkDEBUGCODE(fOnce.lock.thisIsPrivate = 0;)
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -64,7 +66,7 @@ private:
|
|||||||
SkAutoTUnref<SkRemotableFontMgr> fProxy;
|
SkAutoTUnref<SkRemotableFontMgr> fProxy;
|
||||||
|
|
||||||
struct DataEntry {
|
struct DataEntry {
|
||||||
int fDataId; // key1
|
uint32_t fDataId; // key1
|
||||||
int fTtcIndex; // key2
|
int fTtcIndex; // key2
|
||||||
SkTypeface* fTypeface; // value: weak ref to typeface
|
SkTypeface* fTypeface; // value: weak ref to typeface
|
||||||
|
|
||||||
|
@ -451,7 +451,8 @@ public:
|
|||||||
identity);
|
identity);
|
||||||
|
|
||||||
WCHAR str[16];
|
WCHAR str[16];
|
||||||
UINT32 strLen = SkUTF16_FromUnichar(character, reinterpret_cast<uint16_t*>(str));
|
UINT32 strLen = static_cast<UINT32>(
|
||||||
|
SkUTF16_FromUnichar(character, reinterpret_cast<uint16_t*>(str)));
|
||||||
SkTScopedComPtr<IDWriteTextLayout> fallbackLayout;
|
SkTScopedComPtr<IDWriteTextLayout> fallbackLayout;
|
||||||
HR_GENERAL(dwFactory->CreateTextLayout(str, strLen, fallbackFormat.get(),
|
HR_GENERAL(dwFactory->CreateTextLayout(str, strLen, fallbackFormat.get(),
|
||||||
200.0f, 200.0f,
|
200.0f, 200.0f,
|
||||||
|
Loading…
Reference in New Issue
Block a user