commit | 11d0882fece6344dea24c93b00a1c21baf0396ff | [log] [tgz] |
---|---|---|
author | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon May 06 18:08:05 2013 +0000 |
committer | scroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon May 06 18:08:05 2013 +0000 |
tree | 1bf427845f7a38bf659315a09c2959bb190c18c4 | |
parent | 6cd4a0732d13a93833edb9b7cbd662f3cab12f39 [diff] |
lockPixels before calling getColorTable. Fixes a bug where we try to dereference a NULL pointer. Update the comment for SkBitmap::getColorTable, telling the client that pixels must be locked for it to return non-NULL. R=edisonn@google.com Review URL: https://codereview.chromium.org/15002002 git-svn-id: http://skia.googlecode.com/svn/trunk/include@9018 2bbb7eff-a529-9590-31e7-b0007b416f81