Bug 620526 - yv12 to rgb565 neon should not be used on cpus without neon. r=jmuizelaar. ARM neon check. a=blocking-fennec
authorTom Brinkman <reportbase@gmail.com>
Wed, 19 Jan 2011 09:53:46 -0800
changeset 60871 10a75a4655f157116372a8eed84c8031edeb0845
parent 60870 c0db6f2597a2dc0ab7ac7289f8ca02f772b8d12d
child 60872 3fc6728e81a838b092ef50c7dd53b037e2a279bc
child 60981 eab65fd2aa1c327321dad3793ad82096fb1b7f30
push id18144
push userdougt@mozilla.com
push dateWed, 19 Jan 2011 17:54:16 +0000
treeherdermozilla-central@10a75a4655f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, blocking-fennec
bugs620526
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 620526 - yv12 to rgb565 neon should not be used on cpus without neon. r=jmuizelaar. ARM neon check. a=blocking-fennec
gfx/ycbcr/ycbcr_to_rgb565.cpp
gfx/ycbcr/yuv_convert.h
--- a/gfx/ycbcr/ycbcr_to_rgb565.cpp
+++ b/gfx/ycbcr/ycbcr_to_rgb565.cpp
@@ -35,17 +35,17 @@
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 #include "ycbcr_to_rgb565.h"
 
 //The logic for have_ycbcr_to_rgb565 is taken from pixman-cpu.c
 
-#if !defined (__arm__)
+#if !defined (HAVE_ARM_NEON)
 
 int have_ycbcr_to_rgb565 ()
 {
     return 0;
 }
 
 #else
 
--- a/gfx/ycbcr/yuv_convert.h
+++ b/gfx/ycbcr/yuv_convert.h
@@ -3,17 +3,17 @@
 // found in the LICENSE file.
 
 #ifndef MEDIA_BASE_YUV_CONVERT_H_
 #define MEDIA_BASE_YUV_CONVERT_H_
 
 #include "chromium_types.h"
 #include "gfxCore.h"
 
-#ifdef __arm__
+#ifdef HAVE_ARM_NEON
 #define HAVE_YCBCR_TO_RGB565 1
 #endif
  
 namespace mozilla {
 
 namespace gfx {
  
 // Type of YUV surface.