| 66 | } |
| 67 | |
| 68 | Status ObjectManager::RegisterTexture(uint32_t id, GlTexture texture) { |
| 69 | if (id >= textures_.size()) { |
| 70 | textures_.resize(id + 1); |
| 71 | } |
| 72 | textures_[id] = absl::make_unique<GlTexture>(std::move(texture)); |
| 73 | return OkStatus(); |
| 74 | } |
| 75 | |
| 76 | void ObjectManager::RemoveTexture(uint32_t id) { |
| 77 | if (id < textures_.size()) { |
no test coverage detected