[mythtv-commits] mythtv commit: r26999 by markk

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Wed Oct 27 02:23:22 UTC 2010


      Author: markk
        Date: 2010-10-27 02:23:22 +0000 (Wed, 27 Oct 2010)
New Revision: 26999
   Changeset: http://svn.mythtv.org/trac/changeset/26999

Log:

Improved tracking of allocated images in the Painter classes.

- add a QList to the base painter class to keep a record of all image
objects allocated by the painter and subsequently de-allocated by the
parent UI object.
- Move painter specific image deletion into private methods and ensure
that DeleteFormatImage is only called by the parent object when it no
longer has a need for the allocated image, with all other internal
deletion using the private method.


Modified:

   trunk/mythtv/libs/libmythui/mythpainter.cpp
   trunk/mythtv/libs/libmythui/mythpainter.h
   trunk/mythtv/libs/libmythui/mythpainter_d3d9.cpp
   trunk/mythtv/libs/libmythui/mythpainter_d3d9.h
   trunk/mythtv/libs/libmythui/mythpainter_ogl.cpp
   trunk/mythtv/libs/libmythui/mythpainter_ogl.h
   trunk/mythtv/libs/libmythui/mythpainter_qimage.cpp
   trunk/mythtv/libs/libmythui/mythpainter_qimage.h
   trunk/mythtv/libs/libmythui/mythpainter_qt.cpp
   trunk/mythtv/libs/libmythui/mythpainter_qt.h
   trunk/mythtv/libs/libmythui/mythpainter_vdpau.cpp
   trunk/mythtv/libs/libmythui/mythpainter_vdpau.h




More information about the mythtv-commits mailing list