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

Unified Diff: include/core/SkBitmap.h

Issue 15002002: lockPixels before calling getColorTable. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | src/pdf/SkPDFImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 124525e249ea9ca2be333168fd8598acb822015d..ad185479801c8b71d66c7e7381412a3be5ab13e8 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -371,7 +371,9 @@ public:
*/
SkGpuTexture* getTexture() const;
- /** Return the bitmap's colortable (if any). Does not affect the colortable's
+ /** Return the bitmap's colortable, if it uses one (i.e. fConfig is
+ kIndex8_Config or kRLE_Index8_Config) and the pixels are locked.
+ Otherwise returns NULL. Does not affect the colortable's
reference count.
*/
SkColorTable* getColorTable() const { return fColorTable; }
« no previous file with comments | « no previous file | src/pdf/SkPDFImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698