projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2b0af8
)
Ensure SkFontMgr_fontconfig debug thread locking is initialized.
author
bungeman
<bungeman@google.com>
Tue, 26 Aug 2014 20:47:20 +0000
(13:47 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Tue, 26 Aug 2014 20:47:20 +0000
(13:47 -0700)
R=mtklein@google.com
Author: bungeman@google.com
Review URL: https://codereview.chromium.org/
512433002
src/ports/SkFontMgr_fontconfig.cpp
patch
|
blob
|
history
diff --git
a/src/ports/SkFontMgr_fontconfig.cpp
b/src/ports/SkFontMgr_fontconfig.cpp
index 3486cacb51456d779f100479ba56aefd66e7a352..b54835d1be68d07e73e11d5531509d47c217b206 100644
(file)
--- a/
src/ports/SkFontMgr_fontconfig.cpp
+++ b/
src/ports/SkFontMgr_fontconfig.cpp
@@
-57,7
+57,7
@@
namespace {
SK_DECLARE_STATIC_MUTEX(gFCMutex);
#ifdef SK_DEBUG
- void *CreateThreadFcLocked() { return SkNEW
(bool
); }
+ void *CreateThreadFcLocked() { return SkNEW
_ARGS(bool, (false)
); }
void DeleteThreadFcLocked(void* v) { SkDELETE(static_cast<bool*>(v)); }
# define THREAD_FC_LOCKED \
static_cast<bool*>(SkTLS::Get(CreateThreadFcLocked, DeleteThreadFcLocked))