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

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

Issue 1676773003: Optimize CMYK->RGBA (BGRA) transform for jpeg decodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Windows Created 4 years, 10 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/SkOpts_neon.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 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 decltype(fill_block_dimensions) fill_block_dimensions = sk_default::fill_blo ck_dimensions; 72 decltype(fill_block_dimensions) fill_block_dimensions = sk_default::fill_blo ck_dimensions;
73 73
74 decltype(blit_mask_d32_a8) blit_mask_d32_a8 = sk_default::blit_mask_d32_a8; 74 decltype(blit_mask_d32_a8) blit_mask_d32_a8 = sk_default::blit_mask_d32_a8;
75 75
76 decltype(blit_row_color32) blit_row_color32 = sk_default::blit_row_color32; 76 decltype(blit_row_color32) blit_row_color32 = sk_default::blit_row_color32;
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_R GB1;
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_B GR1;
87 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_RGB1; 87 decltype(gray_to_RGB1) gray_to_RGB1 = sk_default::gray_to_ RGB1;
88 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to_RGBA; 88 decltype(grayA_to_RGBA) grayA_to_RGBA = sk_default::grayA_to _RGBA;
89 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to_rgbA; 89 decltype(grayA_to_rgbA) grayA_to_rgbA = sk_default::grayA_to _rgbA;
90 decltype(inverted_CMYK_to_RGB1) inverted_CMYK_to_RGB1 = sk_default::inverted _CMYK_to_RGB1;
91 decltype(inverted_CMYK_to_BGR1) inverted_CMYK_to_BGR1 = sk_default::inverted _CMYK_to_BGR1;
90 92
91 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. 93 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp.
92 void Init_ssse3(); 94 void Init_ssse3();
93 void Init_sse41(); 95 void Init_sse41();
94 void Init_sse42() {} 96 void Init_sse42() {}
95 void Init_avx(); 97 void Init_avx();
96 void Init_avx2() {} 98 void Init_avx2() {}
97 void Init_neon(); 99 void Init_neon();
98 100
99 static void init() { 101 static void init() {
(...skipping 26 matching lines...) Expand all
126 128
127 SK_DECLARE_STATIC_ONCE(gInitOnce); 129 SK_DECLARE_STATIC_ONCE(gInitOnce);
128 void Init() { SkOnce(&gInitOnce, init); } 130 void Init() { SkOnce(&gInitOnce, init); }
129 131
130 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 132 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
131 static struct AutoInit { 133 static struct AutoInit {
132 AutoInit() { Init(); } 134 AutoInit() { Init(); }
133 } gAutoInit; 135 } gAutoInit;
134 #endif 136 #endif
135 } 137 }
OLDNEW
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkOpts_neon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698