| 392 | } |
| 393 | |
| 394 | U64 |
| 395 | EffectInstance::getRenderHash() const |
| 396 | { |
| 397 | EffectTLSDataPtr tls = _imp->tlsData->getTLSData(); |
| 398 | |
| 399 | if ( !tls || tls->frameArgs.empty() ) { |
| 400 | //No tls: get the GUI hash |
| 401 | return getHash(); |
| 402 | } |
| 403 | |
| 404 | const ParallelRenderArgsPtr &args = tls->frameArgs.back(); |
| 405 | |
| 406 | if (args->request) { |
| 407 | //A request pass was made, Hash for this thread was already computed, use it |
| 408 | return args->request->nodeHash; |
| 409 | } |
| 410 | |
| 411 | //Use the hash that was computed when we set the ParallelRenderArgs TLS |
| 412 | return args->nodeHash; |
| 413 | } |
| 414 | |
| 415 | bool |
| 416 | EffectInstance::Implementation::aborted(bool isRenderResponseToUserInteraction, |
no test coverage detected