aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar cblume <cblume@chromium.org>2016-06-03 11:17:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-03 11:17:42 -0700
commit186d2d430ba248fea1e00669154b95252ac9a486 (patch)
tree6fa2d732a1b93f776444421a62d4f5a01ba7c820 /include
parent976f5f0dc5e907d1ca50685fad117bd15d7fc87b (diff)
Plumbing mipmaps to the point of creation.
When creating a DeferredTextureImage we may create mipmaps. Those mipmaps need to then be passed along for when the texture is actually created. R=bsalomon@google.com BUG=578304 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2031273002 Review-Url: https://codereview.chromium.org/2031273002
Diffstat (limited to 'include')
-rw-r--r--include/core/SkImage.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index c9579b610c..50a9f57612 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -396,7 +396,7 @@ public:
* to empty.
*/
bool asLegacyBitmap(SkBitmap*, LegacyBitmapMode) const;
-
+
/**
* Returns true if the image is backed by an image-generator or other src that creates
* (and caches) its pixels / texture on-demand.
@@ -443,6 +443,10 @@ protected:
SkImage(int width, int height, uint32_t uniqueID);
private:
+ static sk_sp<SkImage> MakeTextureFromMipMap(GrContext*, const SkImageInfo&,
+ const GrMipLevel* texels, int mipLevelCount,
+ SkBudgeted);
+
const int fWidth;
const int fHeight;
const uint32_t fUniqueID;