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

Method tiledRenderingFunctor

Engine/EffectInstance.cpp:2139–2179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2137}
2138
2139EffectInstance::RenderingFunctorRetEnum
2140EffectInstance::Implementation::tiledRenderingFunctor(EffectInstance::Implementation::TiledRenderingFunctorArgs & args,
2141 const RectToRender & specificData,
2142 QThread* callingThread)
2143{
2144 ///Make the thread-storage live as long as the render action is called if we're in a newly launched thread in eRenderSafetyFullySafeFrame mode
2145 QThread* curThread = QThread::currentThread();
2146
2147 if (callingThread != curThread) {
2148 ///We are in the case of host frame threading, see kOfxImageEffectPluginPropHostFrameThreading
2149 ///We know that in the renderAction, TLS will be needed, so we do a deep copy of the TLS from the caller thread
2150 ///to this thread
2151 appPTR->getAppTLS()->copyTLS(callingThread, curThread);
2152 }
2153
2154
2155 EffectInstance::RenderingFunctorRetEnum ret = tiledRenderingFunctor(specificData,
2156 args.renderFullScaleThenDownscale,
2157 args.isSequentialRender,
2158 args.isRenderResponseToUserInteraction,
2159 args.firstFrame,
2160 args.lastFrame,
2161 args.preferredInput,
2162 args.mipMapLevel,
2163 args.renderMappedMipMapLevel,
2164 args.rod,
2165 args.time,
2166 args.view,
2167 args.par,
2168 args.byPassCache,
2169 args.outputClipPrefDepth,
2170 args.outputClipPrefsComps,
2171 args.compsNeeded,
2172 args.processChannels,
2173 args.planes);
2174
2175 //Exit of the host frame threading thread
2176 appPTR->getAppTLS()->cleanupTLSForThread();
2177
2178 return ret;
2179}
2180
2181EffectInstance::RenderingFunctorRetEnum
2182EffectInstance::Implementation::tiledRenderingFunctor(const RectToRender & rectToRender,

Callers 1

renderRoIInternalMethod · 0.80

Calls 15

getAppTLSMethod · 0.80
cleanupTLSForThreadMethod · 0.80
getOrCreateTLSDataMethod · 0.80
toCanonicalMethod · 0.80
toPixelEnclosingMethod · 0.80
isHostMaskingEnabledMethod · 0.80
emptyMethod · 0.80
copyTLSMethod · 0.45
getTLSDataMethod · 0.45
isNullMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected