commit | fb7a0c5f19a7bc4f4b2ac59598a501c34ff2e768 | [log] [tgz] |
---|---|---|
author | Yahan Zhou <[email protected]> | Thu Jun 02 16:15:43 2022 -0700 |
committer | Yahan Zhou <[email protected]> | Thu Jun 02 16:19:43 2022 -0700 |
tree | ad61cc70872314f2c9e818cfd0fa82a5d4416257 | |
parent | c79a991147515301e51cc847539817169c85d112 [diff] |
Use share pointer for texture data Skia tries to do the following: 1. create texture 2. bind texture to framebuffer 3. unbind framebuffer 4. delete texture 5. rebind framebuffer and expect its texture attachment still works. We would have to rewrite texture data with smart pointers to support such scenario. Test: org.skia.skqp.SkQPRunner#UnitTest_GrContext_colorTypeSupportedAsSurface Bug: 228188395 Change-Id: I0c05da49410080d506767a93983fc8b244f39e99