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

Unified Diff: ui/gfx/skia_color_space_util.h

Issue 2697413002: color: Add analytic transfer functions in shaders (Closed)
Patch Set: Disable on android Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/color_transform_unittest.cc ('k') | ui/gfx/skia_color_space_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/skia_color_space_util.h
diff --git a/ui/gfx/skia_color_space_util.h b/ui/gfx/skia_color_space_util.h
index 29dbb00be93b52d029357a170779af3bc1e5f2dd..da132b9d9c5773a4bbe084d58ec95da091e00ccb 100644
--- a/ui/gfx/skia_color_space_util.h
+++ b/ui/gfx/skia_color_space_util.h
@@ -10,11 +10,18 @@
namespace gfx {
-float GFX_EXPORT EvalSkTransferFn(const SkColorSpaceTransferFn& fn, float x);
+float GFX_EXPORT SkTransferFnEval(const SkColorSpaceTransferFn& fn, float x);
SkColorSpaceTransferFn GFX_EXPORT
SkTransferFnInverse(const SkColorSpaceTransferFn& fn);
+bool GFX_EXPORT
+SkTransferFnsApproximatelyCancel(const SkColorSpaceTransferFn& a,
+ const SkColorSpaceTransferFn& b);
+
+bool GFX_EXPORT
+SkTransferFnIsApproximatelyIdentity(const SkColorSpaceTransferFn& fn);
+
bool GFX_EXPORT SkMatrixIsApproximatelyIdentity(const SkMatrix44& m);
} // namespace gfx
« no previous file with comments | « ui/gfx/color_transform_unittest.cc ('k') | ui/gfx/skia_color_space_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698