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

Unified Diff: src/utils/win/SkDWrite.cpp

Issue 806473006: namespace {} trick for SK_DECLARE_STATIC_ONCE (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months 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 | « src/utils/SkEventTracer.cpp ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/win/SkDWrite.cpp
diff --git a/src/utils/win/SkDWrite.cpp b/src/utils/win/SkDWrite.cpp
index 7801059187c0907cba9dac5b01afd6df2f7bd8b1..363ac438d99334bf4287ca100325d9a208678108 100644
--- a/src/utils/win/SkDWrite.cpp
+++ b/src/utils/win/SkDWrite.cpp
@@ -41,10 +41,9 @@ static void create_dwrite_factory(IDWriteFactory** factory) {
}
+SK_DECLARE_STATIC_ONCE(once);
bungeman-skia 2015/01/12 19:36:37 'once' seems like a rather generic thing to put at
IDWriteFactory* sk_get_dwrite_factory() {
- SK_DECLARE_STATIC_ONCE(once);
SkOnce(&once, create_dwrite_factory, &gDWriteFactory);
-
return gDWriteFactory;
}
« no previous file with comments | « src/utils/SkEventTracer.cpp ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698