From 045afea97902936869d71389e656a9c6917fa32f Mon Sep 17 00:00:00 2001 From: bsalomon Date: Wed, 9 Mar 2016 11:31:18 -0800 Subject: Add SkImage::NewTextureFromPixmap GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1776913003 Review URL: https://codereview.chromium.org/1776913003 --- include/core/SkImage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/core') 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; } -- cgit v1.2.3