Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: src/ports/SkFontHost_win_dw.cpp

Issue 80983003: Remove unwanted gFTMutex from DirectWrite port. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontHost_win_dw.cpp
===================================================================
--- src/ports/SkFontHost_win_dw.cpp (revision 12352)
+++ src/ports/SkFontHost_win_dw.cpp (working copy)
@@ -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(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 @@
}
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::generatePath(const SkGlyph& glyph, SkPath* path) {
- SkAutoMutexAcquire ac(gFTMutex);
-
SkASSERT(&glyph && path);
path->reset();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698