Chromium Code Reviews| Index: include/gpu/GrTypes.h |
| diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h |
| index 902594522d87ddf0f25ec5671e3c870c565fd53e..d739bf7594b8cceb64dc6b4ec4551968c14182a1 100644 |
| --- a/include/gpu/GrTypes.h |
| +++ b/include/gpu/GrTypes.h |
| @@ -425,6 +425,13 @@ GR_MAKE_BITFIELD_OPS(GrSurfaceFlags) |
| // opaque type for 3D API object handles |
| typedef intptr_t GrBackendObject; |
| +enum class GrBackendObjectOwnership : bool { |
|
Kimmo Kinnunen
2016/04/20 13:59:03
I guess now this is quite similar to below..
bsalomon
2016/04/20 15:48:03
Looking at the latest CL I think it makes sense to
|
| + /** Holder does not destroy the backend object. */ |
| + kBorrowed = false, |
| + /** Holder destroys the backend object. */ |
| + kOwned = true |
| +}; |
| + |
| /** |
| * Some textures will be stored such that the upper and left edges of the content meet at the |
| * the origin (in texture coord space) and for other textures the lower and left edges meet at |