1 /* 2 * Copyright 2015 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "SkOpts.h" 9 10 #define SK_OPTS_NS sk_neon 11 #include "SkBlitMask_opts.h" 12 #include "SkBlitRow_opts.h" 13 #include "SkBlurImageFilter_opts.h" 14 #include "SkColorCubeFilter_opts.h" 15 #include "SkMatrix_opts.h" 16 #include "SkMorphologyImageFilter_opts.h" 17 #include "SkSwizzler_opts.h" 18 #include "SkTextureCompressor_opts.h" 19 #include "SkXfermode_opts.h" 20 21 namespace SkOpts { Init_neon()22 void Init_neon() { 23 create_xfermode = sk_neon::create_xfermode; 24 25 box_blur_xx = sk_neon::box_blur_xx; 26 box_blur_xy = sk_neon::box_blur_xy; 27 box_blur_yx = sk_neon::box_blur_yx; 28 29 dilate_x = sk_neon::dilate_x; 30 dilate_y = sk_neon::dilate_y; 31 erode_x = sk_neon::erode_x; 32 erode_y = sk_neon::erode_y; 33 34 texture_compressor = sk_neon::texture_compressor; 35 fill_block_dimensions = sk_neon::fill_block_dimensions; 36 37 blit_mask_d32_a8 = sk_neon::blit_mask_d32_a8; 38 39 blit_row_color32 = sk_neon::blit_row_color32; 40 41 color_cube_filter_span = sk_neon::color_cube_filter_span; 42 43 matrix_translate = sk_neon::matrix_translate; 44 matrix_scale_translate = sk_neon::matrix_scale_translate; 45 matrix_affine = sk_neon::matrix_affine; 46 47 RGBA_to_BGRA = sk_neon::RGBA_to_BGRA; 48 RGBA_to_rgbA = sk_neon::RGBA_to_rgbA; 49 RGBA_to_bgrA = sk_neon::RGBA_to_bgrA; 50 RGB_to_RGB1 = sk_neon::RGB_to_RGB1; 51 RGB_to_BGR1 = sk_neon::RGB_to_BGR1; 52 gray_to_RGB1 = sk_neon::gray_to_RGB1; 53 grayA_to_RGBA = sk_neon::grayA_to_RGBA; 54 grayA_to_rgbA = sk_neon::grayA_to_rgbA; 55 inverted_CMYK_to_RGB1 = sk_neon::inverted_CMYK_to_RGB1; 56 inverted_CMYK_to_BGR1 = sk_neon::inverted_CMYK_to_BGR1; 57 } 58 } 59