MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / newMemoryInstance

Method newMemoryInstance

Engine/EffectInstance.cpp:3216–3228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3214}
3215
3216PluginMemoryPtr
3217EffectInstance::newMemoryInstance(size_t nBytes)
3218{
3219 PluginMemoryPtr ret = std::make_shared<PluginMemory>( shared_from_this() ); //< hack to get "this" as a shared ptr
3220
3221 addPluginMemoryPointer(ret);
3222 bool wasntLocked = ret->alloc(nBytes);
3223
3224 assert(wasntLocked);
3225 Q_UNUSED(wasntLocked);
3226
3227 return ret;
3228}
3229
3230void
3231EffectInstance::addPluginMemoryPointer(const PluginMemoryPtr& mem)

Callers

nothing calls this directly

Calls 1

allocMethod · 0.45

Tested by

no test coverage detected