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

Side by Side Diff: src/lazy/SkDiscardableMemoryPool.h

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/lazy/SkCachingPixelRef.cpp ('k') | src/lazy/SkDiscardableMemoryPool.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkDiscardableMemoryPool_DEFINED 8 #ifndef SkDiscardableMemoryPool_DEFINED
9 #define SkDiscardableMemoryPool_DEFINED 9 #define SkDiscardableMemoryPool_DEFINED
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual int getCacheMisses() = 0; 46 virtual int getCacheMisses() = 0;
47 virtual void resetCacheHitsAndMisses() = 0; 47 virtual void resetCacheHitsAndMisses() = 0;
48 #endif 48 #endif
49 49
50 /** 50 /**
51 * This non-global pool can be used for unit tests to verify that 51 * This non-global pool can be used for unit tests to verify that
52 * the pool works. 52 * the pool works.
53 * Without mutex, will be not be thread safe. 53 * Without mutex, will be not be thread safe.
54 */ 54 */
55 static SkDiscardableMemoryPool* Create( 55 static SkDiscardableMemoryPool* Create(
56 size_t size, SkBaseMutex* mutex = NULL); 56 size_t size, SkBaseMutex* mutex = nullptr);
57 }; 57 };
58 58
59 /** 59 /**
60 * Returns (and creates if needed) a threadsafe global 60 * Returns (and creates if needed) a threadsafe global
61 * SkDiscardableMemoryPool. 61 * SkDiscardableMemoryPool.
62 */ 62 */
63 SkDiscardableMemoryPool* SkGetGlobalDiscardableMemoryPool(); 63 SkDiscardableMemoryPool* SkGetGlobalDiscardableMemoryPool();
64 64
65 #if !defined(SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE) 65 #if !defined(SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE)
66 #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (128 * 1024 * 1024) 66 #define SK_DEFAULT_GLOBAL_DISCARDABLE_MEMORY_POOL_SIZE (128 * 1024 * 1024)
67 #endif 67 #endif
68 68
69 #endif // SkDiscardableMemoryPool_DEFINED 69 #endif // SkDiscardableMemoryPool_DEFINED
OLDNEW
« no previous file with comments | « src/lazy/SkCachingPixelRef.cpp ('k') | src/lazy/SkDiscardableMemoryPool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698