| 400 | } |
| 401 | |
| 402 | U64 |
| 403 | EffectInstance::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 | |
| 423 | bool |
| 424 | EffectInstance::Implementation::aborted(bool isRenderResponseToUserInteraction, |
no test coverage detected