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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkOpts.cpp » ('j') | src/core/SkOpts.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkOpts.h
diff --git a/src/core/SkOpts.h b/src/core/SkOpts.h
index 1b94126cf724bff8d233e8dc305a80d95fa79e5b..85e38fe13969b43de2d378e22685747e25efa83d 100644
--- a/src/core/SkOpts.h
+++ b/src/core/SkOpts.h
@@ -57,6 +57,11 @@ namespace SkOpts {
const SkColor*);
extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix_affine;
+
+ typedef void (*Swizzle_8888_8888)(uint32_t[], const uint32_t[], int);
+ extern Swizzle_8888_8888 premul_xxxa, // BGRA -> bgrA or RGBA -> rgbA
+ swaprb_xxxa, // BGRA -> RGBA or RGBA -> BGRA
+ premul_swaprb_xxxa; // BGRA -> rgbA or RGBA -> bgrA
}
#endif//SkOpts_DEFINED
« 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