Index: src/ports/SkRemotableFontMgr_win_dw.cpp |
diff --git a/src/ports/SkRemotableFontMgr_win_dw.cpp b/src/ports/SkRemotableFontMgr_win_dw.cpp |
index ad1efb7b123f98d234d7da895394dc976b988724..8c6dd84ba546641a6a121e275470448137e54520 100644 |
--- a/src/ports/SkRemotableFontMgr_win_dw.cpp |
+++ b/src/ports/SkRemotableFontMgr_win_dw.cpp |
@@ -91,7 +91,7 @@ public: |
memcpy(fLocaleName.get(), localeName, localeNameLength * sizeof(WCHAR)); |
} |
- SkDataTable* getFamilyNames() const SK_OVERRIDE { |
+ SkDataTable* getFamilyNames() const override { |
int count = fFontCollection->GetFontFamilyCount(); |
SkDataTableBuilder names(1024); |
@@ -158,7 +158,7 @@ public: |
return S_OK; |
} |
- SkRemotableFontIdentitySet* getIndex(int familyIndex) const SK_OVERRIDE { |
+ SkRemotableFontIdentitySet* getIndex(int familyIndex) const override { |
SkTScopedComPtr<IDWriteFontFamily> fontFamily; |
HRNM(fFontCollection->GetFontFamily(familyIndex, &fontFamily), |
"Could not get requested family."); |
@@ -177,7 +177,7 @@ public: |
} |
virtual SkFontIdentity matchIndexStyle(int familyIndex, |
- const SkFontStyle& pattern) const SK_OVERRIDE |
+ const SkFontStyle& pattern) const override |
{ |
SkFontIdentity identity = { SkFontIdentity::kInvalidDataId }; |
@@ -216,7 +216,7 @@ public: |
return S_OK; |
} |
- SkRemotableFontIdentitySet* matchName(const char familyName[]) const SK_OVERRIDE { |
+ SkRemotableFontIdentitySet* matchName(const char familyName[]) const override { |
SkSMallocWCHAR dwFamilyName; |
if (NULL == familyName) { |
HR_GENERAL(getDefaultFontFamilyName(&dwFamilyName), |
@@ -239,7 +239,7 @@ public: |
} |
virtual SkFontIdentity matchNameStyle(const char familyName[], |
- const SkFontStyle& style) const SK_OVERRIDE |
+ const SkFontStyle& style) const override |
{ |
SkFontIdentity identity = { SkFontIdentity::kInvalidDataId }; |
@@ -279,7 +279,7 @@ public: |
DWRITE_MEASURING_MODE measuringMode, |
DWRITE_GLYPH_RUN const* glyphRun, |
DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, |
- IUnknown* clientDrawingEffect) SK_OVERRIDE |
+ IUnknown* clientDrawingEffect) override |
{ |
SkTScopedComPtr<IDWriteFont> font; |
HRM(fOuter->fFontCollection->GetFontFromFontFace(glyphRun->fontFace, &font), |
@@ -303,7 +303,7 @@ public: |
FLOAT baselineOriginX, |
FLOAT baselineOriginY, |
DWRITE_UNDERLINE const* underline, |
- IUnknown* clientDrawingEffect) SK_OVERRIDE |
+ IUnknown* clientDrawingEffect) override |
{ return E_NOTIMPL; } |
virtual HRESULT STDMETHODCALLTYPE DrawStrikethrough( |
@@ -311,7 +311,7 @@ public: |
FLOAT baselineOriginX, |
FLOAT baselineOriginY, |
DWRITE_STRIKETHROUGH const* strikethrough, |
- IUnknown* clientDrawingEffect) SK_OVERRIDE |
+ IUnknown* clientDrawingEffect) override |
{ return E_NOTIMPL; } |
virtual HRESULT STDMETHODCALLTYPE DrawInlineObject( |
@@ -321,13 +321,13 @@ public: |
IDWriteInlineObject* inlineObject, |
BOOL isSideways, |
BOOL isRightToLeft, |
- IUnknown* clientDrawingEffect) SK_OVERRIDE |
+ IUnknown* clientDrawingEffect) override |
{ return E_NOTIMPL; } |
// IDWritePixelSnapping methods |
virtual HRESULT STDMETHODCALLTYPE IsPixelSnappingDisabled( |
void* clientDrawingContext, |
- BOOL* isDisabled) SK_OVERRIDE |
+ BOOL* isDisabled) override |
{ |
*isDisabled = FALSE; |
return S_OK; |
@@ -335,7 +335,7 @@ public: |
virtual HRESULT STDMETHODCALLTYPE GetCurrentTransform( |
void* clientDrawingContext, |
- DWRITE_MATRIX* transform) SK_OVERRIDE |
+ DWRITE_MATRIX* transform) override |
{ |
const DWRITE_MATRIX ident = {1.0, 0.0, 0.0, 1.0, 0.0, 0.0}; |
*transform = ident; |
@@ -344,18 +344,18 @@ public: |
virtual HRESULT STDMETHODCALLTYPE GetPixelsPerDip( |
void* clientDrawingContext, |
- FLOAT* pixelsPerDip) SK_OVERRIDE |
+ FLOAT* pixelsPerDip) override |
{ |
*pixelsPerDip = 1.0f; |
return S_OK; |
} |
// IUnknown methods |
- ULONG STDMETHODCALLTYPE AddRef() SK_OVERRIDE { |
+ ULONG STDMETHODCALLTYPE AddRef() override { |
return InterlockedIncrement(&fRefCount); |
} |
- ULONG STDMETHODCALLTYPE Release() SK_OVERRIDE { |
+ ULONG STDMETHODCALLTYPE Release() override { |
ULONG newCount = InterlockedDecrement(&fRefCount); |
if (0 == newCount) { |
delete this; |
@@ -364,7 +364,7 @@ public: |
} |
virtual HRESULT STDMETHODCALLTYPE QueryInterface( |
- IID const& riid, void** ppvObject) SK_OVERRIDE |
+ IID const& riid, void** ppvObject) override |
{ |
if (__uuidof(IUnknown) == riid || |
__uuidof(IDWritePixelSnapping) == riid || |
@@ -390,7 +390,7 @@ public: |
virtual SkFontIdentity matchNameStyleCharacter(const char familyName[], |
const SkFontStyle& pattern, |
const char* bcp47[], int bcp47Count, |
- SkUnichar character) const SK_OVERRIDE |
+ SkUnichar character) const override |
{ |
SkFontIdentity identity = { SkFontIdentity::kInvalidDataId }; |
@@ -452,7 +452,7 @@ public: |
return fontFallbackRenderer->FallbackIdentity(); |
} |
- SkStreamAsset* getData(int dataId) const SK_OVERRIDE { |
+ SkStreamAsset* getData(int dataId) const override { |
SkAutoMutexAcquire ama(fDataIdCacheMutex); |
if (dataId >= fDataIdCache.count()) { |
return NULL; |