| 405 | } |
| 406 | |
| 407 | void GLMemoryShadow::commitAllWrites(gltrace::Context *_ctx, Callback callback) |
| 408 | { |
| 409 | if (!_ctx->sharedRes->dirtyShadows.empty()) { |
| 410 | std::unique_lock<std::mutex> lock(mutex); |
| 411 | |
| 412 | for (GLMemoryShadow *memoryShadow : _ctx->sharedRes->dirtyShadows) { |
| 413 | memoryShadow->commitWrites(callback); |
| 414 | } |
| 415 | |
| 416 | _ctx->sharedRes->dirtyShadows.clear(); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | void GLMemoryShadow::syncAllForReads(gltrace::Context *_ctx) |
| 421 | { |
nothing calls this directly
no test coverage detected