Title: [118455] trunk/Source/WebCore
Revision
118455
Author
[email protected]
Date
2012-05-24 18:07:14 -0700 (Thu, 24 May 2012)

Log Message

Use 32-byte alignment in AudioArray if using WEBAUDIO_FFMPEG
https://bugs.webkit.org/show_bug.cgi?id=87430

Patch by Raymond Toy <[email protected]> on 2012-05-24
Reviewed by Chris Rogers.

Covered by existing tests.

* platform/audio/AudioArray.h:
(WebCore::AudioArray::allocate):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (118454 => 118455)


--- trunk/Source/WebCore/ChangeLog	2012-05-25 01:01:49 UTC (rev 118454)
+++ trunk/Source/WebCore/ChangeLog	2012-05-25 01:07:14 UTC (rev 118455)
@@ -1,3 +1,15 @@
+2012-05-24  Raymond Toy  <[email protected]>
+
+        Use 32-byte alignment in AudioArray if using WEBAUDIO_FFMPEG
+        https://bugs.webkit.org/show_bug.cgi?id=87430
+
+        Reviewed by Chris Rogers.
+
+        Covered by existing tests.
+
+        * platform/audio/AudioArray.h:
+        (WebCore::AudioArray::allocate):
+
 2012-05-24  Antoine Labour  <[email protected]>
 
         [chromium] Add a setForceRenderSurface to WebLayer for test/bench purpose

Modified: trunk/Source/WebCore/platform/audio/AudioArray.h (118454 => 118455)


--- trunk/Source/WebCore/platform/audio/AudioArray.h	2012-05-25 01:01:49 UTC (rev 118454)
+++ trunk/Source/WebCore/platform/audio/AudioArray.h	2012-05-25 01:07:14 UTC (rev 118455)
@@ -60,8 +60,11 @@
       
         unsigned initialSize = sizeof(T) * n;
 
-        // 16-byte alignment for 128bit SIMD.
+#if USE(WEBAUDIO_FFMPEG)
+        const size_t alignment = 32;
+#else
         const size_t alignment = 16;
+#endif
 
         if (m_allocation)
             fastFree(m_allocation);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to