| Index: include/gpu/GrTypes.h
|
| diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
|
| index fc233ea0cdf60646c49261f3c326b58e2d40d7aa..7c97e9d5a77b056a290e047cdb0a8d260877ef59 100644
|
| --- a/include/gpu/GrTypes.h
|
| +++ b/include/gpu/GrTypes.h
|
| @@ -474,6 +474,16 @@ enum GrClipType {
|
| // opaque type for 3D API object handles
|
| typedef intptr_t GrBackendObject;
|
|
|
| +
|
| +/** Ownership rules for external GPU resources imported into Skia. */
|
| +enum GrWrapOwnership {
|
| + /** Skia will assume the client will keep the resource alive and Skia will not free it. */
|
| + kBorrow_GrWrapOwnership,
|
| +
|
| + /** Skia will assume ownership of the resource and free it. */
|
| + kAdopt_GrWrapOwnership,
|
| +};
|
| +
|
| /**
|
| * Gr can wrap an existing texture created by the client with a GrTexture
|
| * object. The client is responsible for ensuring that the texture lives at
|
|
|