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

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

Issue 1618003002: Use NEON optimizations for RGB -> RGB(FF) or BGR(FF) in SkSwizzler (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix 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 | « src/codec/SkSwizzler.cpp ('k') | src/core/SkOpts.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 #ifndef SkOpts_DEFINED 8 #ifndef SkOpts_DEFINED
9 #define SkOpts_DEFINED 9 #define SkOpts_DEFINED
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 60
61 // Swizzle input into some sort of 8888 pixel, {premul,unpremul} x {rgba,bgr a}. 61 // Swizzle input into some sort of 8888 pixel, {premul,unpremul} x {rgba,bgr a}.
62 typedef void (*Swizzle_8888)(uint32_t*, const void*, int); 62 typedef void (*Swizzle_8888)(uint32_t*, const void*, int);
63 extern Swizzle_8888 RGBA_to_BGRA, // i.e. just swap RB 63 extern Swizzle_8888 RGBA_to_BGRA, // i.e. just swap RB
64 RGBA_to_rgbA, // i.e. just premultiply 64 RGBA_to_rgbA, // i.e. just premultiply
65 RGBA_to_bgrA; // i.e. swap RB and premultiply 65 RGBA_to_bgrA, // i.e. swap RB and premultiply
66 RGB_to_RGB1, // i.e. insert an opaque alpha
67 RGB_to_BGR1; // i.e. swap RB and insert an opaque alph a
66 } 68 }
67 69
68 #endif//SkOpts_DEFINED 70 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « src/codec/SkSwizzler.cpp ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698