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

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

Issue 1569013002: Set up some hooks for premul/swizzzle opts. (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
« no previous file with comments | « no previous file | src/core/SkOpts.cpp » ('j') | src/core/SkOpts.cpp » ('J')
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 #ifndef SkOpts_DEFINED 8 #ifndef SkOpts_DEFINED
9 #define SkOpts_DEFINED 9 #define SkOpts_DEFINED
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // This function is an optimized version of SkColorCubeFilter::filterSpan 50 // This function is an optimized version of SkColorCubeFilter::filterSpan
51 extern void (*color_cube_filter_span)(const SkPMColor[], 51 extern void (*color_cube_filter_span)(const SkPMColor[],
52 int, 52 int,
53 SkPMColor[], 53 SkPMColor[],
54 const int * [2], 54 const int * [2],
55 const SkScalar * [2], 55 const SkScalar * [2],
56 int, 56 int,
57 const SkColor*); 57 const SkColor*);
58 58
59 extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix _affine; 59 extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix _affine;
60
61 typedef void (*Swizzle_8888_8888)(uint32_t[], const uint32_t[], int);
62 extern Swizzle_8888_8888 premul_xxxa, // BGRA -> bgrA or RGBA -> rgbA
63 swaprb_xxxa, // BGRA -> RGBA or RGBA -> BGRA
64 premul_swaprb_xxxa; // BGRA -> rgbA or RGBA -> bgrA
60 } 65 }
61 66
62 #endif//SkOpts_DEFINED 67 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/core/SkOpts.cpp » ('j') | src/core/SkOpts.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698