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

Unified Diff: ui/gfx/color_transform.h

Issue 2697253002: color: Add support for shader generation (Closed)
Patch Set: More bits of precision 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
« no previous file with comments | « cc/output/shader.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 5368b7a6a7bb956cc0ae6fed292b1b5cf09e2975..8120a7b5f53dfdf0cee24a81ab2859c4b010685f 100644
--- a/ui/gfx/color_transform.h
+++ b/ui/gfx/color_transform.h
@@ -22,9 +22,19 @@ class GFX_EXPORT ColorTransform {
ColorTransform();
virtual ~ColorTransform();
+ virtual gfx::ColorSpace GetSrcColorSpace() const = 0;
+ virtual gfx::ColorSpace GetDstColorSpace() const = 0;
// 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) const = 0;
+
+ // Return GLSL shader source that defines a function DoColorConversion that
+ // converts a vec3 according to this transform.
+ virtual bool CanGetShaderSource() const = 0;
+ virtual std::string GetShaderSource() const = 0;
+
+ // Returns true if this transform is the identity.
+ virtual bool IsIdentity() const = 0;
virtual size_t NumberOfStepsForTesting() const = 0;
« no previous file with comments | « cc/output/shader.cc ('k') | ui/gfx/color_transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698