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

Unified Diff: ui/gfx/color_transform.h

Issue 2696603003: color: Towards ColorTransform optimizations and code generation (Closed)
Patch Set: Add sub-class 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/color_transform.h
diff --git a/ui/gfx/color_transform.h b/ui/gfx/color_transform.h
index 1d99617716e6d7bc5156ca64263a46011b88354d..809dcf08c7dc19072bbafaed8b8ca035c5924989 100644
--- a/ui/gfx/color_transform.h
+++ b/ui/gfx/color_transform.h
@@ -5,9 +5,6 @@
#ifndef UI_GFX_COLOR_TRANSFORM_H_
#define UI_GFX_COLOR_TRANSFORM_H_
-#include <memory>
-#include <stdint.h>
-
#include "build/build_config.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/point3_f.h"
@@ -26,16 +23,17 @@ class GFX_EXPORT ColorTransform {
virtual ~ColorTransform() {}
// Perform transformation of colors, |colors| is both input and output.
- virtual void transform(TriStim* colors, size_t num) = 0;
+ virtual void Transform(TriStim* colors, size_t num) = 0;
+
+ virtual size_t NumberOfStepsForTesting() const = 0;
static std::unique_ptr<ColorTransform> NewColorTransform(
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
#endif // UI_GFX_COLOR_TRANSFORM_H_
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/color_transform.cc » ('j') | ui/gfx/color_transform.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698