Index: ui/gfx/color_analysis.h |
diff --git a/ui/gfx/color_analysis.h b/ui/gfx/color_analysis.h |
index 6201874e80c3c2aadfab0fff01b65a3d1bec3152..0d208f8d9c7a5ba2b07944af9c59f7ca4a62cfca 100644 |
--- a/ui/gfx/color_analysis.h |
+++ b/ui/gfx/color_analysis.h |
@@ -11,6 +11,7 @@ |
#include "base/memory/ref_counted_memory.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "ui/base/ui_export.h" |
+#include "ui/gfx/matrix3_f.h" |
class SkBitmap; |
@@ -98,6 +99,9 @@ UI_EXPORT SkColor CalculateKMeanColorOfPNG( |
// reasonable defaults for |darkness_limit|, |brightness_limit| and |sampler|. |
UI_EXPORT SkColor CalculateKMeanColorOfBitmap(const SkBitmap& bitmap); |
+// Compute color covariance matrix for the input bitmap. |
+UI_EXPORT gfx::Matrix3F ComputeColorCovariance(const SkBitmap& bitmap); |
+ |
} // namespace color_utils |
#endif // UI_GFX_COLOR_ANALYSIS_H_ |