OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Android Open Source Project | 2 * Copyright 2014 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkBlitRow.h" | 8 #include "SkBlitRow.h" |
9 #include "SkBlitMask.h" | 9 #include "SkBlitMask.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 [deviceRB]"+r"(deviceRB), [maskRB]"+r"(maskRB), [s0]"=&r"(s0), | 914 [deviceRB]"+r"(deviceRB), [maskRB]"+r"(maskRB), [s0]"=&r"(s0), |
915 [s1]"=&r"(s1), [s2]"=&r"(s2), [s3]"=&r"(s3) | 915 [s1]"=&r"(s1), [s2]"=&r"(s2), [s3]"=&r"(s3) |
916 : [expanded32] "r" (expanded32), [width] "r" (width) | 916 : [expanded32] "r" (expanded32), [width] "r" (width) |
917 : "memory", "hi", "lo", "t0", "t1", "t2", "t3", | 917 : "memory", "hi", "lo", "t0", "t1", "t2", "t3", |
918 "t4", "t5", "t6", "t7", "t8", "t9" | 918 "t4", "t5", "t6", "t7", "t8", "t9" |
919 ); | 919 ); |
920 } | 920 } |
921 | 921 |
922 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 922 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
923 | 923 |
924 const SkBlitRow::Proc platform_565_procs_mips_dsp[] = { | 924 const SkBlitRow::Proc16 platform_565_procs_mips_dsp[] = { |
925 // no dither | 925 // no dither |
926 NULL, | 926 NULL, |
927 S32_D565_Blend_mips_dsp, | 927 S32_D565_Blend_mips_dsp, |
928 S32A_D565_Opaque_mips_dsp, | 928 S32A_D565_Opaque_mips_dsp, |
929 S32A_D565_Blend_mips_dsp, | 929 S32A_D565_Blend_mips_dsp, |
930 | 930 |
931 // dither | 931 // dither |
932 S32_D565_Opaque_Dither_mips_dsp, | 932 S32_D565_Opaque_Dither_mips_dsp, |
933 S32_D565_Blend_Dither_mips_dsp, | 933 S32_D565_Blend_Dither_mips_dsp, |
934 S32A_D565_Opaque_Dither_mips_dsp, | 934 S32A_D565_Opaque_Dither_mips_dsp, |
935 NULL, | 935 NULL, |
936 }; | 936 }; |
937 | 937 |
938 static const SkBlitRow::Proc32 platform_32_procs_mips_dsp[] = { | 938 static const SkBlitRow::Proc32 platform_32_procs_mips_dsp[] = { |
939 NULL, // S32_Opaque, | 939 NULL, // S32_Opaque, |
940 S32_Blend_BlitRow32_mips_dsp, // S32_Blend, | 940 S32_Blend_BlitRow32_mips_dsp, // S32_Blend, |
941 NULL, // S32A_Opaque, | 941 NULL, // S32A_Opaque, |
942 NULL, // S32A_Blend, | 942 NULL, // S32A_Blend, |
943 }; | 943 }; |
944 | 944 |
945 SkBlitRow::Proc SkBlitRow::PlatformProcs565(unsigned flags) { | 945 SkBlitRow::Proc16 SkBlitRow::PlatformFactory565(unsigned flags) { |
946 return platform_565_procs_mips_dsp[flags]; | 946 return platform_565_procs_mips_dsp[flags]; |
947 } | 947 } |
948 | 948 |
| 949 SkBlitRow::ColorProc16 SkBlitRow::PlatformColorFactory565(unsigned flags) { |
| 950 return NULL; |
| 951 } |
| 952 |
949 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { | 953 SkBlitRow::Proc32 SkBlitRow::PlatformProcs32(unsigned flags) { |
950 return platform_32_procs_mips_dsp[flags]; | 954 return platform_32_procs_mips_dsp[flags]; |
951 } | 955 } |
952 | 956 |
953 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { | 957 SkBlitRow::ColorRectProc PlatformColorRectProcFactory() { |
954 return NULL; | 958 return NULL; |
955 } | 959 } |
956 | 960 |
957 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { | 961 SkBlitRow::ColorProc SkBlitRow::PlatformColorProc() { |
958 return NULL; | 962 return NULL; |
959 } | 963 } |
OLD | NEW |