aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-03-09 11:31:18 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-09 11:31:18 -0800
commit045afea97902936869d71389e656a9c6917fa32f (patch)
tree54881d84720868e0ed7bcdc7540f636ed2183f72 /include/core
parent7d825f8d5ce2a705a345168936a48bf51f54f1b3 (diff)
Add SkImage::NewTextureFromPixmap
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkImage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index c2896beab1..0474195ae2 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -145,6 +145,8 @@ public:
static SkImage* NewFromPicture(const SkPicture*, const SkISize& dimensions,
const SkMatrix*, const SkPaint*);
+ static SkImage* NewTextureFromPixmap(GrContext*, const SkPixmap&, SkBudgeted budgeted);
+
///////////////////////////////////////////////////////////////////////////////////////////////
int width() const { return fWidth; }