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

Unified Diff: ui/gfx/skia_color_space_util.h

Issue 2715453002: Add UMAs for numerical approximation of table-based transfer functions. (Closed)
Patch Set: Fix error computation 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..22183101706705b6b208d5c6a5afdc6f1b4ea0d9 100644
--- a/ui/gfx/skia_color_space_util.h
+++ b/ui/gfx/skia_color_space_util.h
@@ -6,6 +6,7 @@
#define UI_GFX_SKIA_COLOR_SPACE_UTIL_H_
#include "third_party/skia/include/core/SkColorSpace.h"
+#include "third_party/skia/include/core/SkICC.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -22,6 +23,14 @@ 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* linear_fit_succeeded);
+
bool GFX_EXPORT SkMatrixIsApproximatelyIdentity(const SkMatrix44& m);
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698