Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Side by Side Diff: src/opts/SkBitmapProcState_opts_SSSE3.cpp

Issue 761103003: Revert of Add SSSE3 acceleration for S32_D16_filter_DXDY (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSSE3.h ('k') | src/opts/opts_check_x86.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The Android Open Source Project 2 * Copyright 2012 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 "SkBitmapProcState_opts_SSSE3.h" 8 #include "SkBitmapProcState_opts_SSSE3.h"
9 #include "SkColorPriv.h"
10 #include "SkPaint.h" 9 #include "SkPaint.h"
11 #include "SkUtils.h" 10 #include "SkUtils.h"
12 11
13 /* With the exception of the compilers that don't support it, we always build th e 12 /* With the exception of the compilers that don't support it, we always build th e
14 * SSSE3 functions and enable the caller to determine SSSE3 support. However fo r 13 * SSSE3 functions and enable the caller to determine SSSE3 support. However fo r
15 * compilers that do not support SSSE3 we provide a stub implementation. 14 * compilers that do not support SSSE3 we provide a stub implementation.
16 */ 15 */
17 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3 16 #if SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
18 17
19 #include <tmmintrin.h> // SSSE3 18 #include <tmmintrin.h> // SSSE3
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 S32_generic_D32_filter_DX_SSSE3<false>(s, xy, count, colors); 713 S32_generic_D32_filter_DX_SSSE3<false>(s, xy, count, colors);
715 } 714 }
716 715
717 void S32_alpha_D32_filter_DX_SSSE3(const SkBitmapProcState& s, 716 void S32_alpha_D32_filter_DX_SSSE3(const SkBitmapProcState& s,
718 const uint32_t* xy, 717 const uint32_t* xy,
719 int count, uint32_t* colors) { 718 int count, uint32_t* colors) {
720 S32_generic_D32_filter_DX_SSSE3<true>(s, xy, count, colors); 719 S32_generic_D32_filter_DX_SSSE3<true>(s, xy, count, colors);
721 } 720 }
722 721
723 void S32_opaque_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s, 722 void S32_opaque_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s,
724 const uint32_t* xy, 723 const uint32_t* xy,
725 int count, uint32_t* colors) { 724 int count, uint32_t* colors) {
726 S32_generic_D32_filter_DXDY_SSSE3<false>(s, xy, count, colors); 725 S32_generic_D32_filter_DXDY_SSSE3<false>(s, xy, count, colors);
727 } 726 }
728 727
729 void S32_alpha_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s, 728 void S32_alpha_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s,
730 const uint32_t* xy, 729 const uint32_t* xy,
731 int count, uint32_t* colors) { 730 int count, uint32_t* colors) {
732 S32_generic_D32_filter_DXDY_SSSE3<true>(s, xy, count, colors); 731 S32_generic_D32_filter_DXDY_SSSE3<true>(s, xy, count, colors);
733 } 732 }
734 733
735 void S32_D16_filter_DXDY_SSSE3(const SkBitmapProcState& s,
736 const uint32_t* xy,
737 int count, uint16_t* colors) {
738 SkASSERT(64 >= count);
739 SkAutoSTMalloc<64, uint32_t> colors32(count);
740 S32_generic_D32_filter_DXDY_SSSE3<false>(s, xy, count, colors32);
741 for(int i = 0; i < count; i++) {
742 *colors++ = SkPixel32ToPixel16(colors32[i]);
743 }
744 }
745
746 #else // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3 734 #else // SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSSE3
747 735
748 void S32_opaque_D32_filter_DX_SSSE3(const SkBitmapProcState& s, 736 void S32_opaque_D32_filter_DX_SSSE3(const SkBitmapProcState& s,
749 const uint32_t* xy, 737 const uint32_t* xy,
750 int count, uint32_t* colors) { 738 int count, uint32_t* colors) {
751 sk_throw(); 739 sk_throw();
752 } 740 }
753 741
754 void S32_alpha_D32_filter_DX_SSSE3(const SkBitmapProcState& s, 742 void S32_alpha_D32_filter_DX_SSSE3(const SkBitmapProcState& s,
755 const uint32_t* xy, 743 const uint32_t* xy,
756 int count, uint32_t* colors) { 744 int count, uint32_t* colors) {
757 sk_throw(); 745 sk_throw();
758 } 746 }
759 747
760 void S32_opaque_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s, 748 void S32_opaque_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s,
761 const uint32_t* xy, 749 const uint32_t* xy,
762 int count, uint32_t* colors) { 750 int count, uint32_t* colors) {
763 sk_throw(); 751 sk_throw();
764 } 752 }
765 753
766 void S32_alpha_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s, 754 void S32_alpha_D32_filter_DXDY_SSSE3(const SkBitmapProcState& s,
767 const uint32_t* xy, 755 const uint32_t* xy,
768 int count, uint32_t* colors) { 756 int count, uint32_t* colors) {
769 sk_throw();
770 }
771
772 void S32_D16_filter_DXDY_SSSE3(const SkBitmapProcState& s,
773 const uint32_t* xy,
774 int count, uint32_t* colors) {
775 sk_throw(); 757 sk_throw();
776 } 758 }
777 759
778 #endif 760 #endif
OLDNEW
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSSE3.h ('k') | src/opts/opts_check_x86.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698