MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getRenderHash

Method getRenderHash

Engine/EffectInstance.cpp:402–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402U64
403EffectInstance::getRenderHash() const
404{
405 EffectDataTLSPtr tls = _imp->tlsData->getTLSData();
406
407 if ( !tls || tls->frameArgs.empty() ) {
408 //No tls: get the GUI hash
409 return getHash();
410 }
411
412 const boost::shared_ptr<ParallelRenderArgs> &args = tls->frameArgs.back();
413
414 if (args->request) {
415 //A request pass was made, Hash for this thread was already computed, use it
416 return args->request->nodeHash;
417 }
418
419 //Use the hash that was computed when we set the ParallelRenderArgs TLS
420 return args->nodeHash;
421}
422
423bool
424EffectInstance::Implementation::aborted(bool isRenderResponseToUserInteraction,

Callers 12

isIdentityMethod · 0.80
getImageMethod · 0.80
getRegionsOfInterestMethod · 0.80
renderMaskFromStrokeMethod · 0.80
getInputsRoIsFunctorMethod · 0.80
getFrameRangeMethod · 0.80
getUnmappedFrameRangeMethod · 0.80
getFrameRangeMethod · 0.80
getFrameRangeMethod · 0.80

Calls 2

emptyMethod · 0.80
getTLSDataMethod · 0.45

Tested by

no test coverage detected