MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RegisterTexture

Method RegisterTexture

tensorflow/lite/delegates/gpu/gl/object_manager.cc:68–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68Status 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
76void ObjectManager::RemoveTexture(uint32_t id) {
77 if (id < textures_.size()) {

Callers 2

AllocateConstObjectMethod · 0.80

Calls 3

OkStatusFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected