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

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

Issue 1872193002: Graduate matrix map-point procs out of SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: missed Created 4 years, 8 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
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkMatrix_opts.h » ('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 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"
11 11
12 #define SK_OPTS_NS sk_default 12 #define SK_OPTS_NS sk_default
13 #include "SkBlitMask_opts.h" 13 #include "SkBlitMask_opts.h"
14 #include "SkBlitRow_opts.h" 14 #include "SkBlitRow_opts.h"
15 #include "SkBlurImageFilter_opts.h" 15 #include "SkBlurImageFilter_opts.h"
16 #include "SkColorCubeFilter_opts.h" 16 #include "SkColorCubeFilter_opts.h"
17 #include "SkMatrix_opts.h"
18 #include "SkMorphologyImageFilter_opts.h" 17 #include "SkMorphologyImageFilter_opts.h"
19 #include "SkSwizzler_opts.h" 18 #include "SkSwizzler_opts.h"
20 #include "SkTextureCompressor_opts.h" 19 #include "SkTextureCompressor_opts.h"
21 #include "SkXfermode_opts.h" 20 #include "SkXfermode_opts.h"
22 21
23 namespace SK_OPTS_NS { 22 namespace SK_OPTS_NS {
24 static void float_to_half(uint16_t dst[], const float src[], int n) { 23 static void float_to_half(uint16_t dst[], const float src[], int n) {
25 while (n-->0) { 24 while (n-->0) {
26 *dst++ = SkFloatToHalf(*src++); 25 *dst++ = SkFloatToHalf(*src++);
27 } 26 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 decltype( erode_y) erode_y = sk_default::erode_y; 80 decltype( erode_y) erode_y = sk_default::erode_y;
82 81
83 decltype(texture_compressor) texture_compressor = sk_default::texture_ compressor; 82 decltype(texture_compressor) texture_compressor = sk_default::texture_ compressor;
84 decltype(fill_block_dimensions) fill_block_dimensions = sk_default::fill_blo ck_dimensions; 83 decltype(fill_block_dimensions) fill_block_dimensions = sk_default::fill_blo ck_dimensions;
85 84
86 decltype(blit_mask_d32_a8) blit_mask_d32_a8 = sk_default::blit_mask_d32_a8; 85 decltype(blit_mask_d32_a8) blit_mask_d32_a8 = sk_default::blit_mask_d32_a8;
87 86
88 decltype(blit_row_color32) blit_row_color32 = sk_default::blit_row_c olor32; 87 decltype(blit_row_color32) blit_row_color32 = sk_default::blit_row_c olor32;
89 decltype(blit_row_s32a_opaque) blit_row_s32a_opaque = sk_default::blit_row_s 32a_opaque; 88 decltype(blit_row_s32a_opaque) blit_row_s32a_opaque = sk_default::blit_row_s 32a_opaque;
90 89
91 decltype(matrix_translate) matrix_translate = sk_default::matrix _translate;
92 decltype(matrix_scale_translate) matrix_scale_translate = sk_default::matrix _scale_translate;
93 decltype(matrix_affine) matrix_affine = sk_default::matrix _affine;
94
95 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_ BGRA; 90 decltype(RGBA_to_BGRA) RGBA_to_BGRA = sk_default::RGBA_to_ BGRA;
96 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_ rgbA; 91 decltype(RGBA_to_rgbA) RGBA_to_rgbA = sk_default::RGBA_to_ rgbA;
97 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_ bgrA; 92 decltype(RGBA_to_bgrA) RGBA_to_bgrA = sk_default::RGBA_to_ bgrA;
98 decltype(RGB_to_RGB1) RGB_to_RGB1 = sk_default::RGB_to_R GB1; 93 decltype(RGB_to_RGB1) RGB_to_RGB1 = sk_default::RGB_to_R GB1;
99 decltype(RGB_to_BGR1) RGB_to_BGR1 = sk_default::RGB_to_B GR1; 94 decltype(RGB_to_BGR1) RGB_to_BGR1 = sk_default::RGB_to_B GR1;
100 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_ RGB1; 95 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_ RGB1;
101 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to _RGBA; 96 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; 97 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to _rgbA;
103 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted _CMYK_to_RGB1; 98 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted _CMYK_to_RGB1;
104 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted _CMYK_to_BGR1; 99 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted _CMYK_to_BGR1;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 139
145 SK_DECLARE_STATIC_ONCE(gInitOnce); 140 SK_DECLARE_STATIC_ONCE(gInitOnce);
146 void Init() { SkOnce(&gInitOnce, init); } 141 void Init() { SkOnce(&gInitOnce, init); }
147 142
148 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 143 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
149 static struct AutoInit { 144 static struct AutoInit {
150 AutoInit() { Init(); } 145 AutoInit() { Init(); }
151 } gAutoInit; 146 } gAutoInit;
152 #endif 147 #endif
153 } 148 }
OLDNEW
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkMatrix_opts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698