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

Unified Diff: Source/platform/graphics/Color.h

Issue 134733016: Add support for converting Colors to linear RGB; Fix relevant filters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/platform/graphics/Color.h
diff --git a/Source/platform/graphics/Color.h b/Source/platform/graphics/Color.h
index ce371ab23f8059206463c0de934ed0595f03c0aa..05d7588ae22ca3f365cfc14f574bd7e5c2f256a8 100644
--- a/Source/platform/graphics/Color.h
+++ b/Source/platform/graphics/Color.h
@@ -122,6 +122,10 @@ public:
Color blend(const Color&) const;
Color blendWithWhite() const;
+ // Convert a Color assumed to be in the device RGB space into a Color in
+ // linear RGB space.
+ Color convertToLinear() const;
f(malita) 2014/01/22 15:09:32 This is just a bit odd - Color feels too low-level
+
static bool parseHexColor(const String&, RGBA32&);
static bool parseHexColor(const LChar*, unsigned, RGBA32&);
static bool parseHexColor(const UChar*, unsigned, RGBA32&);

Powered by Google App Engine
This is Rietveld 408576698