Chromium Code Reviews| Index: src/image/SkImagePriv.h |
| diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h |
| index d3b1c79a79903b5cd9d6b5362bc0f53552dbdced..4372523d19a86a9782cd2be5e178df936af6aafb 100644 |
| --- a/src/image/SkImagePriv.h |
| +++ b/src/image/SkImagePriv.h |
| @@ -27,7 +27,8 @@ extern SkImage* SkNewImageFromPixelRef(const SkImageInfo&, SkPixelRef*, |
| * SkImageInfo, or the bitmap's pixels cannot be accessed, this will return |
| * NULL. |
| */ |
|
robertphillips
2015/07/06 20:43:47
Why Raster when it can be GPU backed ?
reed2
2015/07/07 01:18:03
This is part of the cascade of dissecting a generi
|
| -extern SkImage* SkNewImageFromBitmap(const SkBitmap&, bool canSharePixelRef, const SkSurfaceProps*); |
| +extern SkImage* SkNewImageFromRasterBitmap(const SkBitmap&, bool forceSharePixelRef, |
| + const SkSurfaceProps*); |
| static inline size_t SkImageMinRowBytes(const SkImageInfo& info) { |
| size_t minRB = info.minRowBytes(); |
| @@ -53,4 +54,6 @@ extern void SkTextureImageApplyBudgetedDecision(SkImage* textureImage); |
| // surface needs to perform a copy-on-write |
| extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture); |
| +GrTexture* GrDeepCopyTexture(GrTexture* src, bool isBudgeted); |
| + |
| #endif |