| Index: include/core/SkImage.h
|
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h
|
| index 61529cc71d50ec88bb621366ff02b8a85ec24761..e2757b9af5cad8d2e2ac1cdf3173a2aeb31a1578 100644
|
| --- a/include/core/SkImage.h
|
| +++ b/include/core/SkImage.h
|
| @@ -74,6 +74,15 @@ public:
|
| SkAlphaType = kPremul_SkAlphaType);
|
|
|
| /**
|
| + * Create a new image from the specified descriptor. Note - Skia will delete or recycle the
|
| + * texture when the image is released.
|
| + *
|
| + * Will return NULL if the specified descriptor is unsupported.
|
| + */
|
| + static SkImage* NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&,
|
| + SkAlphaType = kPremul_SkAlphaType);
|
| +
|
| + /**
|
| * Create a new image by copying the pixels from the specified descriptor. No reference is
|
| * kept to the original platform texture.
|
| *
|
|
|