~abreu-alexandre/oxide/add-ua-to-downloadrequested

Viewing all changes in revision 902.

  • Committer: Chris Coulson
  • Date: 2015-01-06 20:32:03 UTC
  • Revision ID: chris.coulson@canonical.com-20150106203203-0fb28gttmxammmlx
Various fixes in CompositorUtils:
- Don't pass TextureRef between threads, as it's not thread safe. In particular, don't add a reference to it on the GPU thread and then post it to the UI thread with a task that may not ever run (eg, at shutdown).
- Keep all TextureRef's in a map in CompositorUtils, as this allows us to release them all at shutdown in the case where we create a new one after the UI thread has stopped processing tasks. This and the above fix should fix bug 1337506.
- The client ID passed to TextureRef is not the ID of the client process, but the client-side resource ID of the texture (which we don't have, because we don't use the client API). Just pass 0 to this

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: