[Webkit-unassigned] [Bug 49377] [Qt][WK2] Implement BackingStore

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 11 05:10:25 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49377


Balazs Kelemen <kbalazs at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kling at webkit.org




--- Comment #1 from Balazs Kelemen <kbalazs at webkit.org>  2010-11-11 05:10:25 PST ---
I have a weird problem with implementing this method:
PassOwnPtr<GraphicsContext> BackingStore::createGraphicsContext()
I need to create a QImage and a QPainter on heap to create the GraphicsContext.
Our GC implementation does not own the painter so this would cause a leak.
I took a look at the CoreGraphics and Cairo implementation of GC and those
owns the platform specific data. Unfortunately we cannot tweak the GC to
behave like those because:
1. in some cases we get the painter from the user so we are not allowed to
   own that
2. there is no way to create a copy from an active painter
   (active = begin has been called)

So what I did in the change that will be uploaded is adding a way to explicitly
take off ownership of the painter and the paint device to the GC.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list