OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 SkGraphics_DEFINED | 8 #ifndef SkGraphics_DEFINED |
9 #define SkGraphics_DEFINED | 9 #define SkGraphics_DEFINED |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 static int SetFontCacheCountLimit(int count); | 71 static int SetFontCacheCountLimit(int count); |
72 | 72 |
73 /** | 73 /** |
74 * For debugging purposes, this will attempt to purge the font cache. It | 74 * For debugging purposes, this will attempt to purge the font cache. It |
75 * does not change the limit, but will cause subsequent font measures and | 75 * does not change the limit, but will cause subsequent font measures and |
76 * draws to be recreated, since they will no longer be in the cache. | 76 * draws to be recreated, since they will no longer be in the cache. |
77 */ | 77 */ |
78 static void PurgeFontCache(); | 78 static void PurgeFontCache(); |
79 | 79 |
80 /** | 80 /** |
81 * Scaling bitmaps with the SkPaint::kHigh_FilterLevel setting is | 81 * Scaling bitmaps with the kHigh_SkFilterQuality setting is |
82 * expensive, so the result is saved in the global Scaled Image | 82 * expensive, so the result is saved in the global Scaled Image |
83 * Cache. | 83 * Cache. |
84 * | 84 * |
85 * This function returns the memory usage of the Scaled Image Cache. | 85 * This function returns the memory usage of the Scaled Image Cache. |
86 */ | 86 */ |
87 static size_t GetResourceCacheTotalBytesUsed(); | 87 static size_t GetResourceCacheTotalBytesUsed(); |
88 | 88 |
89 /** | 89 /** |
90 * These functions get/set the memory usage limit for the resource cache, u
sed for temporary | 90 * These functions get/set the memory usage limit for the resource cache, u
sed for temporary |
91 * bitmaps and other resources. Entries are purged from the cache when the
memory useage | 91 * bitmaps and other resources. Entries are purged from the cache when the
memory useage |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 public: | 146 public: |
147 SkAutoGraphics() { | 147 SkAutoGraphics() { |
148 SkGraphics::Init(); | 148 SkGraphics::Init(); |
149 } | 149 } |
150 ~SkAutoGraphics() { | 150 ~SkAutoGraphics() { |
151 SkGraphics::Term(); | 151 SkGraphics::Term(); |
152 } | 152 } |
153 }; | 153 }; |
154 | 154 |
155 #endif | 155 #endif |
OLD | NEW |