| Index: src/core/SkBitmap.cpp
|
| diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
|
| index cb4f1c6057b230229bddbd202dac2f48b18acaf2..dda6e39f8b0921c54a69cfcf476c34abc43b2acb 100644
|
| --- a/src/core/SkBitmap.cpp
|
| +++ b/src/core/SkBitmap.cpp
|
| @@ -1388,6 +1388,16 @@ bool SkBitmap::requestLock(SkAutoPixmapUnlock* result) const {
|
| return false;
|
| }
|
|
|
| +bool SkBitmap::peekPixels(SkPixmap* pmap) const {
|
| + if (fPixels) {
|
| + if (pmap) {
|
| + pmap->reset(fInfo, fPixels, fRowBytes, fColorTable);
|
| + }
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| #ifdef SK_DEBUG
|
|
|