OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
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 "SkHalf.h" | 8 #include "SkHalf.h" |
9 #include "SkOnce.h" | 9 #include "SkOnce.h" |
10 #include "SkOpts.h" | 10 #include "SkOpts.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_
BGRA; | 96 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_
BGRA; |
97 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_
rgbA; | 97 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_
rgbA; |
98 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_
bgrA; | 98 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_
bgrA; |
99 decltype(RGB_to_RGB1) RGB_to_RGB1 = sk_default::RGB_to_R
GB1; | 99 decltype(RGB_to_RGB1) RGB_to_RGB1 = sk_default::RGB_to_R
GB1; |
100 decltype(RGB_to_BGR1) RGB_to_BGR1 = sk_default::RGB_to_B
GR1; | 100 decltype(RGB_to_BGR1) RGB_to_BGR1 = sk_default::RGB_to_B
GR1; |
101 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_
RGB1; | 101 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_
RGB1; |
102 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to
_RGBA; | 102 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to
_RGBA; |
103 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to
_rgbA; | 103 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to
_rgbA; |
104 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted
_CMYK_to_RGB1; | 104 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted
_CMYK_to_RGB1; |
105 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted
_CMYK_to_BGR1; | 105 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted
_CMYK_to_BGR1; |
| 106 decltype(RGBA_to_rgbA_sample2) RGBA_to_rgbA_sample2 = sk_default::RGBA_to_
rgbA_sample2; |
| 107 decltype(RGBA_to_bgrA_sample2) RGBA_to_bgrA_sample2 = sk_default::RGBA_to_
bgrA_sample2; |
| 108 decltype(RGBA_to_rgbA_sample4) RGBA_to_rgbA_sample4 = sk_default::RGBA_to_
rgbA_sample4; |
| 109 decltype(RGBA_to_bgrA_sample4) RGBA_to_bgrA_sample4 = sk_default::RGBA_to_
bgrA_sample4; |
| 110 decltype(RGBA_to_rgbA_sample8) RGBA_to_rgbA_sample8 = sk_default::RGBA_to_
rgbA_sample8; |
| 111 decltype(RGBA_to_bgrA_sample8) RGBA_to_bgrA_sample8 = sk_default::RGBA_to_
bgrA_sample8; |
106 | 112 |
107 decltype(half_to_float) half_to_float = sk_default::half_to_float; | 113 decltype(half_to_float) half_to_float = sk_default::half_to_float; |
108 decltype(float_to_half) float_to_half = sk_default::float_to_half; | 114 decltype(float_to_half) float_to_half = sk_default::float_to_half; |
109 | 115 |
110 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. | 116 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. |
111 void Init_ssse3(); | 117 void Init_ssse3(); |
112 void Init_sse41(); | 118 void Init_sse41(); |
113 void Init_sse42() {} | 119 void Init_sse42() {} |
114 void Init_avx() {} | 120 void Init_avx() {} |
115 void Init_avx2() {} | 121 void Init_avx2() {} |
(...skipping 29 matching lines...) Expand all Loading... |
145 | 151 |
146 SK_DECLARE_STATIC_ONCE(gInitOnce); | 152 SK_DECLARE_STATIC_ONCE(gInitOnce); |
147 void Init() { SkOnce(&gInitOnce, init); } | 153 void Init() { SkOnce(&gInitOnce, init); } |
148 | 154 |
149 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 155 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
150 static struct AutoInit { | 156 static struct AutoInit { |
151 AutoInit() { Init(); } | 157 AutoInit() { Init(); } |
152 } gAutoInit; | 158 } gAutoInit; |
153 #endif | 159 #endif |
154 } | 160 } |
OLD | NEW |