New issue
Advanced search Search tips

Issue 689704 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 28
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug

Blocking:
issue 687852



Sign in to add a comment

clean up/remove kmeans color extraction codepaths

Project Member Reported by est...@chromium.org, Feb 7 2017

Issue description

There are a few places that use CalculateKMeanColorOfBitmap and related functions. We're going to be porting the android palette color extraction API so this will replace existing uses of the kmean algorithm.

But a lot of places seem not to actually need color extraction at all any more, so could just be removed.
 
Blocking: 687852
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d00f7189cf554e07c0b25788266919725d90ffb9

commit d00f7189cf554e07c0b25788266919725d90ffb9
Author: estade <estade@chromium.org>
Date: Thu Feb 23 18:50:17 2017

Port Android palette API for deriving a prominent color from an image.

This code is not yet used but will soon be applied to coloration of the
CrOS shelf and ripples based on the wallpaper. It may also be used to
replace the KMeans algorithm that presently exists.

See Android package android.support.v7.graphics
https://developer.android.com/reference/android/support/v7/graphics/package-summary.html

BUG=687852,595010, 689704 

Review-Url: https://codereview.chromium.org/2690513002
Cr-Commit-Position: refs/heads/master@{#452564}

[modify] https://crrev.com/d00f7189cf554e07c0b25788266919725d90ffb9/ui/gfx/color_analysis.cc
[modify] https://crrev.com/d00f7189cf554e07c0b25788266919725d90ffb9/ui/gfx/color_analysis.h
[modify] https://crrev.com/d00f7189cf554e07c0b25788266919725d90ffb9/ui/gfx/color_analysis_unittest.cc

Status: WontFix (was: Started)
pkasting found another place to use the kmeans algorithm in the theme engine, so I guess we'll keep it for now.

Sign in to add a comment