RESOLVED FIXED104550
[Qt] MediaPlayerQTKit broken after switching QPainter to raster engine.
https://bugs.webkit.org/show_bug.cgi?id=104550
Summary [Qt] MediaPlayerQTKit broken after switching QPainter to raster engine.
Zeno Albisser
Reported 2012-12-10 06:40:11 PST
[Qt] MediaPlayerQTKit broken after switching QPainter to raster engine.
Attachments
Patch (4.56 KB, patch)
2012-12-10 06:45 PST, Zeno Albisser
hausmann: review+
Zeno Albisser
Comment 1 2012-12-10 06:45:45 PST
Simon Hausmann
Comment 2 2012-12-10 07:23:45 PST
Comment on attachment 178539 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=178539&action=review r=me with comments/changes. Looking forward to this code path disappearing altogether hopefully in the near future ;-) > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:1374 > + NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: NULL I think you're going to need to call [imageRep release] later on after painting to release the memory again, no?
Zeno Albisser
Comment 3 2012-12-10 07:39:04 PST
(In reply to comment #2) > Looking forward to this code path disappearing altogether hopefully in the near future ;-) Me too. > > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:1374 > > + NSBitmapImageRep *imageRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: NULL > > I think you're going to need to call [imageRep release] later on after painting to release the memory again, no? Yes.
Zeno Albisser
Comment 4 2012-12-10 08:12:11 PST
Balazs Kelemen
Comment 5 2012-12-19 02:50:53 PST
Just a quick note on this patch: probably we want to introduce a global (WTF) helper for bgr <-> rgb conversion, since it is subject of SIMD and I believe Gabor Rapcsányi already implemented it in NEON at some other place :)
Simon Hausmann
Comment 6 2012-12-19 04:30:46 PST
(In reply to comment #5) > Just a quick note on this patch: probably we want to introduce a global (WTF) helper for bgr <-> rgb conversion, since it is subject of SIMD and I believe Gabor Rapcsányi already implemented it in NEON at some other place :) Maybe yes, but we're going to stop using the code here very soon, so that's going to be one user less.
Gabor Rapcsanyi
Comment 7 2012-12-19 04:35:28 PST
(In reply to comment #5) > Just a quick note on this patch: probably we want to introduce a global (WTF) helper for bgr <-> rgb conversion, since it is subject of SIMD and I believe Gabor Rapcsányi already implemented it in NEON at some other place :) I had a patch to speed up a little bit this conversion: https://bugs.webkit.org/show_bug.cgi?id=103630 With NEON SIMD it could be twice as fast as now, if you are interested in I can make a bug for it.
Note You need to log in before you can comment on or make changes to this bug.