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

Unified Diff: app/gfx/color_utils.h

Issue 214054: Eliminate a bunch of color conversions. I was going to try and clean up the ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | app/gfx/color_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/color_utils.h
===================================================================
--- app/gfx/color_utils.h (revision 26827)
+++ app/gfx/color_utils.h (working copy)
@@ -11,32 +11,6 @@
namespace color_utils {
-// Represents set of CIE XYZ tristimulus values.
-struct CIE_XYZ {
- double X;
- double Y; // luminance
- double Z;
-};
-
-// Represents a L*a*b* color value
-struct LabColor {
- int L;
- int a;
- int b;
-};
-
-// Note: these transformations assume sRGB as the source color space
-
-// Convert between different color spaces
-void SkColorToCIEXYZ(SkColor c, CIE_XYZ* xyz);
-SkColor CIEXYZToSkColor(SkAlpha alpha, const CIE_XYZ& xyz);
-
-void SkColorToLabColor(SkColor c, LabColor* lab);
-SkColor LabColorToSkColor(const LabColor& lab, SkAlpha alpha);
-
-void CIEXYZToLabColor(const CIE_XYZ& xyz, LabColor* lab);
-void LabColorToCIEXYZ(const LabColor& lab, CIE_XYZ* xyz);
-
// Determine if a given alpha value is nearly completely transparent.
bool IsColorCloseToTransparent(SkAlpha alpha);
« no previous file with comments | « no previous file | app/gfx/color_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698