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

Unified Diff: src/core/SkOpts.h

Issue 1939783003: Add a hook for CPU-optimized sRGB-sRGB srcover. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nits Created 4 years, 8 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/opts/SkBlend_opts.h » ('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 04c9f00de301e7c0277ae1c54858a6facc09fa8e..b8aea4aa348cceb5277f50bf3cac326d6d44e31a 100644
--- a/src/core/SkOpts.h
+++ b/src/core/SkOpts.h
@@ -64,6 +64,10 @@ namespace SkOpts {
extern void (*half_to_float)(float[], const uint16_t[], int);
extern void (*float_to_half)(uint16_t[], const float[], int);
+
+ // Blend ndst src pixels over dst, where both src and dst point to sRGB pixels (RGBA or BGRA).
+ // If nsrc < ndst, we loop over src to create a pattern.
+ extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int ndst, int nsrc);
}
#endif//SkOpts_DEFINED
« no previous file with comments | « no previous file | src/core/SkOpts.cpp » ('j') | src/opts/SkBlend_opts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698