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

Unified Diff: ui/gfx/color_transform.h

Issue 2652503002: Use SkICC in gfx::ICCProfile and gfx::ColorSpace (Closed)
Patch Set: Rebase Created 3 years, 11 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_space.cc ('k') | ui/gfx/color_transform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_transform.h
diff --git a/ui/gfx/color_transform.h b/ui/gfx/color_transform.h
index 092608c210119f767258fa2c5cf82684efef68ad..1d99617716e6d7bc5156ca64263a46011b88354d 100644
--- a/ui/gfx/color_transform.h
+++ b/ui/gfx/color_transform.h
@@ -9,13 +9,12 @@
#include <stdint.h>
#include "build/build_config.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/point3_f.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
-class ColorSpace;
-
class GFX_EXPORT ColorTransform {
public:
enum class Intent { INTENT_ABSOLUTE, INTENT_PERCEPTUAL, TEST_NO_OPT };
@@ -33,6 +32,9 @@ class GFX_EXPORT ColorTransform {
const ColorSpace& from,
const ColorSpace& to,
Intent intent);
+
+ static float ToLinearForTesting(ColorSpace::TransferID id, float v);
+ static float FromLinearForTesting(ColorSpace::TransferID id, float v);
};
} // namespace gfx
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/color_transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698