aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2015-10-23 10:48:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-23 10:48:26 -0700
commit546dc3294d6ad17bdaae40430e799ea33acfe943 (patch)
treed12c96447e135d077274679395072c968c01e504 /src
parent51eedb6e7db0de1d81128b727bfb9df60d77aa98 (diff)
Use SkAutoTExclusive guard in DirectWrite port.
Diffstat (limited to 'src')
-rw-r--r--src/ports/SkScalerContext_win_dw.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ports/SkScalerContext_win_dw.cpp b/src/ports/SkScalerContext_win_dw.cpp
index eec65663e7..347bc824b7 100644
--- a/src/ports/SkScalerContext_win_dw.cpp
+++ b/src/ports/SkScalerContext_win_dw.cpp
@@ -37,17 +37,7 @@
*/
SK_DECLARE_STATIC_MUTEX(DWriteFactoryMutex);
-class Exclusive {
-public:
- Exclusive(SkBaseMutex& mutex) : fMutex(mutex) {
- fMutex.acquire();
- }
- ~Exclusive() {
- fMutex.release();
- }
-private:
- SkBaseMutex& fMutex;
-};
+typedef SkAutoMutexExclusive Exclusive;
static bool isLCD(const SkScalerContext::Rec& rec) {
return SkMask::kLCD16_Format == rec.fMaskFormat;