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

Issue 2690513002: Port Android palette API for deriving a prominent color from an image. (Closed)

Created:
3 years, 10 months ago by Evan Stade
Modified:
3 years, 9 months ago
CC:
chromium-reviews, bruthig
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/d00f7189cf554e07c0b25788266919725d90ffb9

Patch Set 1 #

Total comments: 14

Patch Set 2 : git cl try #

Total comments: 47

Patch Set 3 : . #

Patch Set 4 : more docs #

Patch Set 5 : address msvc pickiness about comparisons #

Patch Set 6 : less allocating #

Patch Set 7 : better comment #

Patch Set 8 : another comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -5 lines) Patch
M ui/gfx/color_analysis.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M ui/gfx/color_analysis.cc View 1 2 3 4 5 6 7 4 chunks +360 lines, -5 lines 0 comments Download
M ui/gfx/color_analysis_unittest.cc View 1 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (24 generated)
Evan Stade
3 years, 10 months ago (2017-02-10 03:09:39 UTC) #3
sadrul
I didn't check the code for the actual procedure, since I am not familiar with ...
3 years, 10 months ago (2017-02-10 19:36:44 UTC) #5
Evan Stade
On 2017/02/10 19:36:44, sadrul wrote: > I didn't check the code for the actual procedure, ...
3 years, 10 months ago (2017-02-10 21:46:03 UTC) #7
sadrul
On 2017/02/10 21:46:03, Evan Stade wrote: > On 2017/02/10 19:36:44, sadrul wrote: > > I ...
3 years, 10 months ago (2017-02-13 15:47:32 UTC) #8
Evan Stade
Oshima, mind taking a look? https://codereview.chromium.org/2690513002/diff/1/ui/gfx/color_analysis.cc File ui/gfx/color_analysis.cc (right): https://codereview.chromium.org/2690513002/diff/1/ui/gfx/color_analysis.cc#newcode173 ui/gfx/color_analysis.cc:173: bool CanSplit() { return ...
3 years, 10 months ago (2017-02-13 19:01:13 UTC) #9
oshima
+reed@ Maybe reed@ knows who can/should review? Or we can just add reference to the ...
3 years, 10 months ago (2017-02-14 02:18:08 UTC) #11
Evan Stade
On 2017/02/14 02:18:08, oshima wrote: > +reed@ > > Maybe reed@ knows who can/should review? ...
3 years, 10 months ago (2017-02-14 18:15:24 UTC) #12
Evan Stade
Hi potential reviewers, how do you think we can move this CL forward?
3 years, 10 months ago (2017-02-15 22:14:08 UTC) #13
Evan Stade
+2 more //ui/ reviewers. Please let me know if there's a way I can help ...
3 years, 10 months ago (2017-02-16 22:39:13 UTC) #15
sky
I'm not at all familiar with this, but then I'm not sure if anyone is. ...
3 years, 10 months ago (2017-02-16 22:54:51 UTC) #16
Albert Bodenhamer
On 2017/02/14 02:18:08, oshima wrote: > +reed@ > > Maybe reed@ knows who can/should review? ...
3 years, 10 months ago (2017-02-17 00:30:12 UTC) #17
Evan Stade
On 2017/02/16 22:54:51, sky wrote: > I'm not at all familiar with this, but then ...
3 years, 10 months ago (2017-02-17 19:53:53 UTC) #19
Nico
Looks generally fine. What's the max size of images for this? If large: The code ...
3 years, 10 months ago (2017-02-17 21:37:06 UTC) #20
sky
I got most of the way through this before I saw thakis's response. So, here's ...
3 years, 10 months ago (2017-02-17 21:42:20 UTC) #21
reed1
3 years, 10 months ago (2017-02-17 21:48:52 UTC) #23
Evan Stade
> What's the max size of images for this? If large: The code > looks ...
3 years, 10 months ago (2017-02-17 23:23:19 UTC) #24
Evan Stade
https://codereview.chromium.org/2690513002/diff/20001/ui/gfx/color_analysis.cc File ui/gfx/color_analysis.cc (right): https://codereview.chromium.org/2690513002/diff/20001/ui/gfx/color_analysis.cc#newcode176 ui/gfx/color_analysis.cc:176: ColorBox Split() { On 2017/02/17 21:42:19, sky wrote: > ...
3 years, 10 months ago (2017-02-17 23:26:26 UTC) #27
sky
LGTM https://codereview.chromium.org/2690513002/diff/20001/ui/gfx/color_analysis.cc File ui/gfx/color_analysis.cc (right): https://codereview.chromium.org/2690513002/diff/20001/ui/gfx/color_analysis.cc#newcode160 ui/gfx/color_analysis.cc:160: // A |ColorBox| represents a region in a ...
3 years, 10 months ago (2017-02-18 00:01:34 UTC) #28
Evan Stade
https://codereview.chromium.org/2690513002/diff/20001/ui/gfx/color_analysis.h File ui/gfx/color_analysis.h (right): https://codereview.chromium.org/2690513002/diff/20001/ui/gfx/color_analysis.h#newcode113 ui/gfx/color_analysis.h:113: enum class LumaRange { On 2017/02/18 00:01:34, sky wrote: ...
3 years, 10 months ago (2017-02-18 00:05:00 UTC) #29
Evan Stade
thakis@, did you have any additional comments/requests?
3 years, 10 months ago (2017-02-22 01:37:16 UTC) #40
Nico
lgtm Re optimization: It looks like this does a ton of allocations, copies the bitmap ...
3 years, 9 months ago (2017-02-23 17:11:14 UTC) #41
Evan Stade
On 2017/02/23 17:11:14, Nico wrote: > lgtm > > Re optimization: It looks like this ...
3 years, 9 months ago (2017-02-23 17:46:39 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2690513002/140001
3 years, 9 months ago (2017-02-23 17:50:25 UTC) #45
commit-bot: I haz the power
3 years, 9 months ago (2017-02-23 18:51:51 UTC) #48
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/d00f7189cf554e07c0b257882669...

Powered by Google App Engine
This is Rietveld 408576698