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

Side by Side Diff: src/opts/SkOpts_ssse3.cpp

Issue 2046013002: Optimize color xforms with 2.2 gammas for SSE2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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
« src/opts/SkColorXform_opts.h ('K') | « src/opts/SkColorXform_opts.h ('k') | no next file » | 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 "SkOpts.h" 8 #include "SkOpts.h"
9 #define SK_OPTS_NS sk_ssse3 9 #define SK_OPTS_NS sk_ssse3
10 #include "SkBlitMask_opts.h" 10 #include "SkBlitMask_opts.h"
11 #include "SkColorCubeFilter_opts.h" 11 #include "SkColorCubeFilter_opts.h"
12 #include "SkColorXform_opts.h"
12 #include "SkSwizzler_opts.h" 13 #include "SkSwizzler_opts.h"
13 #include "SkXfermode_opts.h" 14 #include "SkXfermode_opts.h"
14 15
15 namespace SkOpts { 16 namespace SkOpts {
16 void Init_ssse3() { 17 void Init_ssse3() {
17 create_xfermode = sk_ssse3::create_xfermode; 18 create_xfermode = sk_ssse3::create_xfermode;
18 blit_mask_d32_a8 = sk_ssse3::blit_mask_d32_a8; 19 blit_mask_d32_a8 = sk_ssse3::blit_mask_d32_a8;
19 color_cube_filter_span = sk_ssse3::color_cube_filter_span; 20 color_cube_filter_span = sk_ssse3::color_cube_filter_span;
20 21
21 RGBA_to_BGRA = sk_ssse3::RGBA_to_BGRA; 22 RGBA_to_BGRA = sk_ssse3::RGBA_to_BGRA;
22 RGBA_to_rgbA = sk_ssse3::RGBA_to_rgbA; 23 RGBA_to_rgbA = sk_ssse3::RGBA_to_rgbA;
23 RGBA_to_bgrA = sk_ssse3::RGBA_to_bgrA; 24 RGBA_to_bgrA = sk_ssse3::RGBA_to_bgrA;
24 RGB_to_RGB1 = sk_ssse3::RGB_to_RGB1; 25 RGB_to_RGB1 = sk_ssse3::RGB_to_RGB1;
25 RGB_to_BGR1 = sk_ssse3::RGB_to_BGR1; 26 RGB_to_BGR1 = sk_ssse3::RGB_to_BGR1;
26 gray_to_RGB1 = sk_ssse3::gray_to_RGB1; 27 gray_to_RGB1 = sk_ssse3::gray_to_RGB1;
27 grayA_to_RGBA = sk_ssse3::grayA_to_RGBA; 28 grayA_to_RGBA = sk_ssse3::grayA_to_RGBA;
28 grayA_to_rgbA = sk_ssse3::grayA_to_rgbA; 29 grayA_to_rgbA = sk_ssse3::grayA_to_rgbA;
29 inverted_CMYK_to_RGB1 = sk_ssse3::inverted_CMYK_to_RGB1; 30 inverted_CMYK_to_RGB1 = sk_ssse3::inverted_CMYK_to_RGB1;
30 inverted_CMYK_to_BGR1 = sk_ssse3::inverted_CMYK_to_BGR1; 31 inverted_CMYK_to_BGR1 = sk_ssse3::inverted_CMYK_to_BGR1;
32
33 color_xform_2Dot2_RGBA_to_8888 = sk_ssse3::color_xform_2Dot2_RGBA_to_888 8;
mtklein 2016/06/08 01:41:41 I think everything you used is ≤SSE2. sk_default:
msarett 2016/06/08 13:48:28 Thanks, yes SSE2 is fine! Didn't realize that def
31 } 34 }
32 } 35 }
OLDNEW
« src/opts/SkColorXform_opts.h ('K') | « src/opts/SkColorXform_opts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698