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

Unified Diff: src/core/SkBitmapCache.h

Issue 533713003: Added Doc for GetAllocator in SkResourceCache and SkBitmapCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Please kill me Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkResourceCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapCache.h
diff --git a/src/core/SkBitmapCache.h b/src/core/SkBitmapCache.h
index 74e854635313c6ccb2dce4cd36132b9459f7cb0c..9291ff57027ee8ae42fea801bbbb7e20232595f2 100644
--- a/src/core/SkBitmapCache.h
+++ b/src/core/SkBitmapCache.h
@@ -16,7 +16,8 @@ class SkMipMap;
class SkBitmapCache {
public:
/**
- * Use this allocator for bitmaps, so they can use ashmem when available.
+ * Use this allocator for bitmaps, so they can use ashmem when available.
+ * Returns NULL if the ResourceCache has not been initialized with a DiscardableFactory.
*/
static SkBitmap::Allocator* GetAllocator();
@@ -25,7 +26,7 @@ public:
* result will be set to the matching bitmap with its pixels already locked.
*/
static bool Find(const SkBitmap& src, SkScalar invScaleX, SkScalar invScaleY, SkBitmap* result);
-
+
/*
* result must be marked isImmutable()
*/
« no previous file with comments | « no previous file | src/core/SkResourceCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698