Index: src/image/SkImagePriv.h |
diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h |
index d3b1c79a79903b5cd9d6b5362bc0f53552dbdced..afaf3f173619ef376afaada9946345dcf4d1f1d8 100644 |
--- a/src/image/SkImagePriv.h |
+++ b/src/image/SkImagePriv.h |
@@ -23,11 +23,14 @@ extern SkImage* SkNewImageFromPixelRef(const SkImageInfo&, SkPixelRef*, |
* be shared if either the bitmap is marked as immutable, or canSharePixelRef |
* is true. |
* |
+ * It is illegal to call this with a texture-backed bitmap. |
+ * |
* If the bitmap's colortype cannot be converted into a corresponding |
* SkImageInfo, or the bitmap's pixels cannot be accessed, this will return |
* NULL. |
*/ |
-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 +56,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 |