Changeset 140704 in webkit
- Timestamp:
- Jan 24, 2013 12:14:58 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140702 r140704 1 2013-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 1 14 2013-01-24 Max Vujovic <mvujovic@adobe.com> 2 15 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r140359 r140704 1062 1062 // is autoreleased, and there is no non-autoreleased version of that function. 1063 1063 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]; 1065 1067 } 1066 1068 }
Note: See TracChangeset
for help on using the changeset viewer.