Commit 1dc0d10b authored by jer.noble@apple.com's avatar jer.noble@apple.com

Mac: Video appears in wrong place during pinch operations

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

Reviewed by Eric Carlson.

Send the correct input and output rects, post translation and scaling,
to the CIContext for drawing.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 864dfd0a
2013-01-23 Jer Noble <jer.noble@apple.com>
Mac: Video appears in wrong place during pinch operations
https://bugs.webkit.org/show_bug.cgi?id=107730
Reviewed by Eric Carlson.
Send the correct input and output rects, post translation and scaling,
to the CIContext for drawing.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput):
2013-01-24 Max Vujovic <mvujovic@adobe.com>
[CSS Filters] CSS opacity property clips filter outsets
......@@ -1061,7 +1061,9 @@ void MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput(GraphicsContext* c
// ciContext does not use a RetainPtr for results of contextWithCGContext:, as the returned value
// is autoreleased, and there is no non-autoreleased version of that function.
CIContext* ciContext = [CIContext contextWithCGContext:context->platformContext() options:nil];
[ciContext drawImage:image.get() inRect:rect fromRect:rect];
CGRect outputRect = { CGPointZero, rect.size() };
CGRect imageRect = CGRectMake(0, 0, CVPixelBufferGetWidth(m_lastImage.get()), CVPixelBufferGetHeight(m_lastImage.get()));
[ciContext drawImage:image.get() inRect:outputRect fromRect:imageRect];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment