aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkBitmap.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-05-22 08:06:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-22 08:06:22 -0700
commit92fc2ae58331662ec411a048686cb4801e0a909a (patch)
tree8b49c125bd366e77fcdff77788e6965912758dc9 /include/core/SkBitmap.h
parenteb1cb5c5b50febad115d859faca91d2d6af3fff2 (diff)
add SkPixmap and external locking to bitmaps
Diffstat (limited to 'include/core/SkBitmap.h')
-rw-r--r--include/core/SkBitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index a39c8688ae..144e93ba88 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -11,6 +11,7 @@
#include "SkColor.h"
#include "SkColorTable.h"
#include "SkImageInfo.h"
+#include "SkPixmap.h"
#include "SkPoint.h"
#include "SkRefCnt.h"
@@ -428,6 +429,8 @@ public:
*/
bool lockPixelsAreWritable() const;
+ bool requestLock(SkAutoPixmapUnlock* result) const;
+
/** Call this to be sure that the bitmap is valid enough to be drawn (i.e.
it has non-null pixels, and if required by its colortype, it has a
non-null colortable. Returns true if all of the above are met.