~aacid/unity/do_not_reuse_menus_on_order_change_for_6

Viewing all changes in revision 2764.

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-10-04 15:34:33 UTC
  • mfrom: (2760.4.5 unity-6.0)
  • Revision ID: tarmac-20121004153433-e434n2fj53cnmw5f
UnityWindow: add PixmapTexture struct: never separate a binded texture to its pixmap
  
Or it will lead to crashes. Now we cache both the GLTexture and the binded XPixmap, so
that we delete both together and there won't be crashes.

Texutures binded to Pixmaps should not be alive when the binded pixmap has been
destroyed. So, now we have a new PixmapTexture struct that keeps both the data
structures alive.
We now use a smart pointer of PixmapTexture to cache both the temporary decorations,
inside a CairoContext, and the ones at class level.. Fixes: https://bugs.launchpad.net/bugs/1061396. Approved by Neil J. Patel.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: