Title: [157533] trunk/Source/WebCore
Revision
157533
Author
[email protected]
Date
2013-10-16 15:17:24 -0700 (Wed, 16 Oct 2013)

Log Message

[Windows] Speculative fix for test, media/video-canvas-drawing-output.html.

* platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
(WebCore::AVFWrapper::createImageForTimeInRect):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (157532 => 157533)


--- trunk/Source/WebCore/ChangeLog	2013-10-16 22:10:23 UTC (rev 157532)
+++ trunk/Source/WebCore/ChangeLog	2013-10-16 22:17:24 UTC (rev 157533)
@@ -1,3 +1,10 @@
+2013-10-16  Roger Fong  <[email protected]>
+
+        [Windows] Speculative fix for test, media/video-canvas-drawing-output.html.
+
+        * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:
+        (WebCore::AVFWrapper::createImageForTimeInRect):
+
 2013-10-16  Tim Horton  <[email protected]>
 
         PlatformCALayer constructor should take layer type as an argument

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp (157532 => 157533)


--- trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp	2013-10-16 22:10:23 UTC (rev 157532)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp	2013-10-16 22:17:24 UTC (rev 157533)
@@ -1672,8 +1672,8 @@
 #endif
 
     AVCFAssetImageGeneratorSetMaximumSize(m_imageGenerator.get(), CGSize(rect.size()));
-    CGImageRef image = AVCFAssetImageGeneratorCopyCGImageAtTime(m_imageGenerator.get(), CMTimeMakeWithSeconds(time, 600), 0, 0);
-
+    CGImageRef rawimage = AVCFAssetImageGeneratorCopyCGImageAtTime(m_imageGenerator.get(), CMTimeMakeWithSeconds(time, 600), 0, 0);
+    CGImageRef image = CGImageCreateCopyWithColorSpace(rawimage,  CGColorSpaceCreateDeviceRGB());
 #if !LOG_DISABLED
     double duration = monotonicallyIncreasingTime() - start;
     LOG(Media, "AVFWrapper::createImageForTimeInRect(%p) - creating image took %.4f", this, narrowPrecisionToFloat(duration));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to