aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-21 18:47:01 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-21 18:47:01 +0000
commitd4323325ca65b9efd4a8ee3cff6c4558f8b610bf (patch)
tree63f400f6ff0192270985366233f56d64a17ecb95 /src/ports
parent9e59cb69e1907de6400c4e90fb2918fc1b7f013d (diff)
Remove unwanted gFTMutex from DirectWrite port.
This mutex exists because this file started life as a copy of the FreeType port. There is no global library state to protect here, so there is no need for the mutex. R=caryclark@google.com Review URL: https://codereview.chromium.org/80983003 git-svn-id: http://skia.googlecode.com/svn/trunk@12353 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports')
-rw-r--r--src/ports/SkFontHost_win_dw.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ports/SkFontHost_win_dw.cpp b/src/ports/SkFontHost_win_dw.cpp
index 4c50d95c60..a3d1d17104 100644
--- a/src/ports/SkFontHost_win_dw.cpp
+++ b/src/ports/SkFontHost_win_dw.cpp
@@ -36,8 +36,6 @@
#include <dwrite.h>
-SK_DECLARE_STATIC_MUTEX(gFTMutex);
-
static bool isLCD(const SkScalerContext::Rec& rec) {
return SkMask::kLCD16_Format == rec.fMaskFormat ||
SkMask::kLCD32_Format == rec.fMaskFormat;
@@ -719,7 +717,6 @@ SkScalerContext_DW::SkScalerContext_DW(DWriteFontTypeface* typeface,
: SkScalerContext(typeface, desc)
, fTypeface(SkRef(typeface))
, fGlyphCount(-1) {
- SkAutoMutexAcquire ac(gFTMutex);
fXform.m11 = SkScalarToFloat(fRec.fPost2x2[0][0]);
fXform.m12 = SkScalarToFloat(fRec.fPost2x2[1][0]);
@@ -975,8 +972,6 @@ static void rgb_to_lcd32(const uint8_t* SK_RESTRICT src, const SkGlyph& glyph,
}
void SkScalerContext_DW::generateImage(const SkGlyph& glyph) {
- SkAutoMutexAcquire ac(gFTMutex);
-
const bool isBW = SkMask::kBW_Format == fRec.fMaskFormat;
const bool isAA = !isLCD(fRec);
@@ -1014,8 +1009,6 @@ void SkScalerContext_DW::generateImage(const SkGlyph& glyph) {
}
void SkScalerContext_DW::generatePath(const SkGlyph& glyph, SkPath* path) {
- SkAutoMutexAcquire ac(gFTMutex);
-
SkASSERT(&glyph && path);
path->reset();