summaryrefslogtreecommitdiff
path: root/src/cairo-surface-snapshot-inline.h
Commit message (Collapse)AuthorAgeFilesLines
* snapshot: Avoid triggering assertion for grabbing the target during destroyChris Wilson2012-05-011-1/+2
| | | | | | | If the source wins the race to acquire the original surface as it is being destroyed, it triggers an assertion. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* snapshot: Perform the cow under a mutexChris Wilson2012-04-271-1/+8
| | | | | | | | | | | | In order to prevent a race between concurrent destroy and use in another thread, we need to acquire a reference to the snapshot->target under a mutex. Whilst we hold that reference, it prevents the internal destroy mechanism from freeing the memory we are using (if we have a pointer to the original surface) and the client drops their final reference. Oh boy, talk about opening a can of worms... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* Split cairo-recording-surface-private into struct+inlinesChris Wilson2012-04-191-1/+1
| | | | | References: https://bugs.freedesktop.org/show_bug.cgi?id=48577 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* Split cairo-surface-snapshot-private into struct+inlinesChris Wilson2012-04-191-0/+59
References: https://bugs.freedesktop.org/show_bug.cgi?id=48577 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>