diff options
author | Zeno Albisser <zeno@webkit.org> | 2012-12-10 17:17:26 +0100 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2012-12-11 01:49:11 +0100 |
commit | 079193f62dc04c37ba236726dd30701b3f0eb031 (patch) | |
tree | 494ab2edf31ec8f8ac6f8003aa67d0c2e209e591 /Source/JavaScriptCore/bytecode/CodeBlock.cpp | |
parent | 5d22b23b9184f615cc774c0aa7fd27615454f658 (diff) | |
download | qtwebkit-079193f62dc04c37ba236726dd30701b3f0eb031.tar.gz |
[Qt] MediaPlayerQTKit broken after switching QPainter to raster engine.
https://bugs.webkit.org/show_bug.cgi?id=104550
With Qt5 QPainter changed to using the raster engine.
Therefore we no longer have an NSGraphicsContext that we can
use for drawing video frames.
With this patch we are rendering the video frame into an image buffer
and then paint it manually using QPainter.
Reviewed by Simon Hausmann.
* platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
(WebCore):
(WebCore::swapBgrToRgb):
Swap the color format from BGR to RGB,
since BGR is not supported by QImage.
(WebCore::MediaPlayerPrivateQTKit::paint):
Change-Id: I28462879baaa4c19b6fc642b38aadef5d9d3aa93
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137159 268f45cc-cd09-0410-ab3c-d52691b4dbf
Task-number: QTBUG-28361
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'Source/JavaScriptCore/bytecode/CodeBlock.cpp')
0 files changed, 0 insertions, 0 deletions