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 "SkOnce.h" | 8 #include "SkOnce.h" |
9 #include "SkOpts.h" | 9 #include "SkOpts.h" |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 decltype(matrix_translate) matrix_translate = sk_default::matrix
_translate; | 78 decltype(matrix_translate) matrix_translate = sk_default::matrix
_translate; |
79 decltype(matrix_scale_translate) matrix_scale_translate = sk_default::matrix
_scale_translate; | 79 decltype(matrix_scale_translate) matrix_scale_translate = sk_default::matrix
_scale_translate; |
80 decltype(matrix_affine) matrix_affine = sk_default::matrix
_affine; | 80 decltype(matrix_affine) matrix_affine = sk_default::matrix
_affine; |
81 | 81 |
82 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_BGRA; | 82 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_BGRA; |
83 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_rgbA; | 83 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_rgbA; |
84 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_bgrA; | 84 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_bgrA; |
85 decltype(RGB_to_RGB1) RGB_to_RGB1 = sk_default::RGB_to_RGB1; | 85 decltype(RGB_to_RGB1) RGB_to_RGB1 = sk_default::RGB_to_RGB1; |
86 decltype(RGB_to_BGR1) RGB_to_BGR1 = sk_default::RGB_to_BGR1; | 86 decltype(RGB_to_BGR1) RGB_to_BGR1 = sk_default::RGB_to_BGR1; |
| 87 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_RGB1; |
87 | 88 |
88 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. | 89 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. |
89 void Init_ssse3(); | 90 void Init_ssse3(); |
90 void Init_sse41(); | 91 void Init_sse41(); |
91 void Init_sse42() {} | 92 void Init_sse42() {} |
92 void Init_avx(); | 93 void Init_avx(); |
93 void Init_avx2() {} | 94 void Init_avx2() {} |
94 void Init_neon(); | 95 void Init_neon(); |
95 | 96 |
96 static void init() { | 97 static void init() { |
(...skipping 26 matching lines...) Expand all Loading... |
123 | 124 |
124 SK_DECLARE_STATIC_ONCE(gInitOnce); | 125 SK_DECLARE_STATIC_ONCE(gInitOnce); |
125 void Init() { SkOnce(&gInitOnce, init); } | 126 void Init() { SkOnce(&gInitOnce, init); } |
126 | 127 |
127 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS | 128 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
128 static struct AutoInit { | 129 static struct AutoInit { |
129 AutoInit() { Init(); } | 130 AutoInit() { Init(); } |
130 } gAutoInit; | 131 } gAutoInit; |
131 #endif | 132 #endif |
132 } | 133 } |
OLD | NEW |