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

Unified Diff: src/core/SkScaledImageCache.cpp

Issue 104433005: SkOnce: let f be any functor, update comments (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: tests SkOnceFlag was uninitialized Created 7 years 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/core/SkOnce.h ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkScaledImageCache.cpp
diff --git a/src/core/SkScaledImageCache.cpp b/src/core/SkScaledImageCache.cpp
index 55eadb849e646410d4b29b612cd88e943342204f..eba20c4f906644ce16307a4e18d30963d5188e1e 100644
--- a/src/core/SkScaledImageCache.cpp
+++ b/src/core/SkScaledImageCache.cpp
@@ -519,7 +519,7 @@ static void create_cache(SkScaledImageCache** cache) {
static SkScaledImageCache* get_cache() {
static SkScaledImageCache* gCache(NULL);
SK_DECLARE_STATIC_ONCE(create_cache_once);
- SkOnce<SkScaledImageCache**>(&create_cache_once, create_cache, &gCache);
+ SkOnce(&create_cache_once, create_cache, &gCache);
SkASSERT(NULL != gCache);
return gCache;
}
« no previous file with comments | « src/core/SkOnce.h ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698