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

Unified Diff: include/core/SkInstCnt.h

Issue 302083003: Clean up SkOnce: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: unused 1 == Created 6 years, 7 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 | « no previous file | include/core/SkOnce.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkInstCnt.h
diff --git a/include/core/SkInstCnt.h b/include/core/SkInstCnt.h
index 7e5b454b15d67f4ad7c082a5b2b3af17e1073af5..1839ee1dbdc6720d9c6b0870ea10e52dbe901c7a 100644
--- a/include/core/SkInstCnt.h
+++ b/include/core/SkInstCnt.h
@@ -47,11 +47,11 @@ extern bool gPrintInstCount;
public: \
SkInstanceCountHelper() { \
SK_DECLARE_STATIC_ONCE(once); \
- SkOnce(&once, init, 0); \
+ SkOnce(&once, init); \
sk_atomic_inc(GetInstanceCountPtr()); \
} \
\
- static void init(int) { \
+ static void init() { \
initStep \
} \
\
« no previous file with comments | « no previous file | include/core/SkOnce.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698