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

Unified Diff: ui/gfx/skia_color_space_util.h

Issue 2715453002: Add UMAs for numerical approximation of table-based transfer functions. (Closed)
Patch Set: Review feedback 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
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 da132b9d9c5773a4bbe084d58ec95da091e00ccb..14bdab171de718e679ef1b3dc56c5b097a9344e5 100644
--- a/ui/gfx/skia_color_space_util.h
+++ b/ui/gfx/skia_color_space_util.h
@@ -22,6 +22,13 @@ SkTransferFnsApproximatelyCancel(const SkColorSpaceTransferFn& a,
bool GFX_EXPORT
SkTransferFnIsApproximatelyIdentity(const SkColorSpaceTransferFn& fn);
+void GFX_EXPORT SkApproximateTransferFn(const float* x,
+ const float* t,
+ size_t n,
+ SkColorSpaceTransferFn* fn,
+ float* error,
+ bool* nonlinear_fit_converged);
+
bool GFX_EXPORT SkMatrixIsApproximatelyIdentity(const SkMatrix44& m);
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698