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

Side by Side Diff: src/core/SkOpts.cpp

Issue 1626463002: Refactor swizzle names and types. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 months 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
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 decltype(fill_block_dimensions) fill_block_dimensions = sk_default::fill_blo ck_dimensions; 74 decltype(fill_block_dimensions) fill_block_dimensions = sk_default::fill_blo ck_dimensions;
75 75
76 decltype(blit_mask_d32_a8) blit_mask_d32_a8 = sk_default::blit_mask_d32_a8; 76 decltype(blit_mask_d32_a8) blit_mask_d32_a8 = sk_default::blit_mask_d32_a8;
77 77
78 decltype(blit_row_color32) blit_row_color32 = sk_default::blit_row_color32; 78 decltype(blit_row_color32) blit_row_color32 = sk_default::blit_row_color32;
79 79
80 decltype(matrix_translate) matrix_translate = sk_default::matrix _translate; 80 decltype(matrix_translate) matrix_translate = sk_default::matrix _translate;
81 decltype(matrix_scale_translate) matrix_scale_translate = sk_default::matrix _scale_translate; 81 decltype(matrix_scale_translate) matrix_scale_translate = sk_default::matrix _scale_translate;
82 decltype(matrix_affine) matrix_affine = sk_default::matrix _affine; 82 decltype(matrix_affine) matrix_affine = sk_default::matrix _affine;
83 83
84 decltype( premul_xxxa) premul_xxxa = sk_default:: premul_ xxxa; 84 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_BGRA;
85 decltype( swaprb_xxxa) swaprb_xxxa = sk_default:: swaprb_ xxxa; 85 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_rgbA;
86 decltype(premul_swaprb_xxxa) premul_swaprb_xxxa = sk_default::premul_swaprb_ xxxa; 86 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_bgrA;
87 87
88 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. 88 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp.
89 void Init_ssse3(); 89 void Init_ssse3();
90 void Init_sse41(); 90 void Init_sse41();
91 void Init_sse42() {} 91 void Init_sse42() {}
92 void Init_avx(); 92 void Init_avx();
93 void Init_avx2() {} 93 void Init_avx2() {}
94 void Init_neon(); 94 void Init_neon();
95 95
96 static void init() { 96 static void init() {
(...skipping 26 matching lines...) Expand all
123 123
124 SK_DECLARE_STATIC_ONCE(gInitOnce); 124 SK_DECLARE_STATIC_ONCE(gInitOnce);
125 void Init() { SkOnce(&gInitOnce, init); } 125 void Init() { SkOnce(&gInitOnce, init); }
126 126
127 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 127 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
128 static struct AutoInit { 128 static struct AutoInit {
129 AutoInit() { Init(); } 129 AutoInit() { Init(); }
130 } gAutoInit; 130 } gAutoInit;
131 #endif 131 #endif
132 } 132 }
OLDNEW
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkOpts_neon.cpp » ('j') | src/opts/SkSwizzler_opts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698