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

Unified Diff: ui/gfx/skia_color_space_util.h

Issue 2696603003: color: Towards ColorTransform optimizations and code generation (Closed)
Patch Set: Remove unneeded refactor 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
new file mode 100644
index 0000000000000000000000000000000000000000..d9f27adbacc7e68fa5abf57a8ce777a76661b584
--- /dev/null
+++ b/ui/gfx/skia_color_space_util.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_SKIA_COLOR_SPACE_UTIL_H_
+#define UI_GFX_SKIA_COLOR_SPACE_UTIL_H_
+
+#include "third_party/skia/include/core/SkColorSpace.h"
+#include "ui/gfx/gfx_export.h"
+
+namespace gfx {
+
+float GFX_EXPORT EvalSkTransferFn(const SkColorSpaceTransferFn& fn, float x);
+
+SkColorSpaceTransferFn GFX_EXPORT
+SkTransferFnInverse(const SkColorSpaceTransferFn& fn);
+
+bool GFX_EXPORT
+SkTransferFnIsApproximatelyIdentity(const SkColorSpaceTransferFn& fn);
+
+bool GFX_EXPORT
+SkTransferFnsApproximatelyCancel(const SkColorSpaceTransferFn& a,
+ const SkColorSpaceTransferFn& b);
+
+bool GFX_EXPORT SkMatrixIsApproximatelyIdentity(const SkMatrix44& m);
+
+} // namespace gfx
+
+#endif // UI_GFX_SKIA_COLOR_SPACE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698