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

Side by Side Diff: src/opts/SkBlitRow_opts_SSE2.h

Issue 923523002: Replace SSE optimization of Color32A_D565 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed comment comment Created 5 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/opts/SkBitmapProcState_opts_SSE2.h ('k') | src/opts/SkBlitRow_opts_SSE2.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 2009 The Android Open Source Project 2 * Copyright 2009 The Android Open Source Project
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 #ifndef SkBlitRow_opts_SSE2_DEFINED 8 #ifndef SkBlitRow_opts_SSE2_DEFINED
9 #define SkBlitRow_opts_SSE2_DEFINED 9 #define SkBlitRow_opts_SSE2_DEFINED
10 10
11 #include "SkBlitRow.h" 11 #include "SkBlitRow.h"
12 12
13 void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, 13 void S32_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
14 const SkPMColor* SK_RESTRICT src, 14 const SkPMColor* SK_RESTRICT src,
15 int count, U8CPU alpha); 15 int count, U8CPU alpha);
16 16
17 void S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, 17 void S32A_Opaque_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
18 const SkPMColor* SK_RESTRICT src, 18 const SkPMColor* SK_RESTRICT src,
19 int count, U8CPU alpha); 19 int count, U8CPU alpha);
20 20
21 void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst, 21 void S32A_Blend_BlitRow32_SSE2(SkPMColor* SK_RESTRICT dst,
22 const SkPMColor* SK_RESTRICT src, 22 const SkPMColor* SK_RESTRICT src,
23 int count, U8CPU alpha); 23 int count, U8CPU alpha);
24
25 void Color32_SSE2(SkPMColor dst[], const SkPMColor src[], int count,
26 SkPMColor color);
27 void Color32A_D565_SSE2(uint16_t dst[], SkPMColor src, int count, int x,
28 int y);
29
24 void SkARGB32_A8_BlitMask_SSE2(void* device, size_t dstRB, const void* mask, 30 void SkARGB32_A8_BlitMask_SSE2(void* device, size_t dstRB, const void* mask,
25 size_t maskRB, SkColor color, 31 size_t maskRB, SkColor color,
26 int width, int height); 32 int width, int height);
27 33
28 void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t src[], 34 void SkBlitLCD16Row_SSE2(SkPMColor dst[], const uint16_t src[],
29 SkColor color, int width, SkPMColor); 35 SkColor color, int width, SkPMColor);
30 void SkBlitLCD16OpaqueRow_SSE2(SkPMColor dst[], const uint16_t src[], 36 void SkBlitLCD16OpaqueRow_SSE2(SkPMColor dst[], const uint16_t src[],
31 SkColor color, int width, SkPMColor opaqueDst); 37 SkColor color, int width, SkPMColor opaqueDst);
32 38
33 void S32_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst, 39 void S32_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
34 const SkPMColor* SK_RESTRICT src, int count, 40 const SkPMColor* SK_RESTRICT src, int count,
35 U8CPU alpha, int /*x*/, int /*y*/); 41 U8CPU alpha, int /*x*/, int /*y*/);
36 void S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst, 42 void S32A_D565_Opaque_SSE2(uint16_t* SK_RESTRICT dst,
37 const SkPMColor* SK_RESTRICT src, 43 const SkPMColor* SK_RESTRICT src,
38 int count, U8CPU alpha, int /*x*/, int /*y*/); 44 int count, U8CPU alpha, int /*x*/, int /*y*/);
39 void S32_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst, 45 void S32_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst,
40 const SkPMColor* SK_RESTRICT src, 46 const SkPMColor* SK_RESTRICT src,
41 int count, U8CPU alpha, int x, int y); 47 int count, U8CPU alpha, int x, int y);
42 void S32A_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst, 48 void S32A_D565_Opaque_Dither_SSE2(uint16_t* SK_RESTRICT dst,
43 const SkPMColor* SK_RESTRICT src, 49 const SkPMColor* SK_RESTRICT src,
44 int count, U8CPU alpha, int x, int y); 50 int count, U8CPU alpha, int x, int y);
45
46 #endif 51 #endif
OLDNEW
« no previous file with comments | « src/opts/SkBitmapProcState_opts_SSE2.h ('k') | src/opts/SkBlitRow_opts_SSE2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698