Changeset 140704 in webkit


Ignore:
Timestamp:
Jan 24, 2013 12:14:58 PM (11 years ago)
Author:
jer.noble@apple.com
Message:

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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140702 r140704  
     12013-01-23  Jer Noble  <jer.noble@apple.com>
     2
     3        Mac: Video appears in wrong place during pinch operations
     4        https://bugs.webkit.org/show_bug.cgi?id=107730
     5
     6        Reviewed by Eric Carlson.
     7
     8        Send the correct input and output rects, post translation and scaling,
     9        to the CIContext for drawing.
     10
     11        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
     12        (WebCore::MediaPlayerPrivateAVFoundationObjC::paintWithVideoOutput):
     13
    1142013-01-24  Max Vujovic  <mvujovic@adobe.com>
    215
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm

    r140359 r140704  
    10621062        // is autoreleased, and there is no non-autoreleased version of that function.
    10631063        CIContext* ciContext = [CIContext contextWithCGContext:context->platformContext() options:nil];
    1064         [ciContext drawImage:image.get() inRect:rect fromRect:rect];
     1064        CGRect outputRect = { CGPointZero, rect.size() };
     1065        CGRect imageRect = CGRectMake(0, 0, CVPixelBufferGetWidth(m_lastImage.get()), CVPixelBufferGetHeight(m_lastImage.get()));
     1066        [ciContext drawImage:image.get() inRect:outputRect fromRect:imageRect];
    10651067    }
    10661068}
Note: See TracChangeset for help on using the changeset viewer.