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

Issue 291653004: Add extra overloads for color analysis. (Closed)

Created:
6 years, 7 months ago by calamity
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Add extra overloads for color analysis. This CL adds some extra overloads for CalculateKMeanColorOfBitmap and CalculateKMeanColorOfPNG to provide a more convenient API. More specifically, it provides both parameterized and unparameterized versions of both functions. BUG=376613 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273102

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix nits #

Total comments: 6

Patch Set 3 : fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -16 lines) Patch
M ui/gfx/color_analysis.h View 1 2 2 chunks +17 lines, -7 lines 0 comments Download
M ui/gfx/color_analysis.cc View 1 2 2 chunks +20 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
calamity
6 years, 7 months ago (2014-05-22 05:42:57 UTC) #1
Matt Giuca
LGTM with fixing the order of the functions. https://codereview.chromium.org/291653004/diff/1/ui/gfx/color_analysis.h File ui/gfx/color_analysis.h (right): https://codereview.chromium.org/291653004/diff/1/ui/gfx/color_analysis.h#newcode56 ui/gfx/color_analysis.h:56: // ...
6 years, 7 months ago (2014-05-22 06:10:42 UTC) #2
calamity
+asvitkine for ui/gfx/ OWNERS. This is a precursor for https://codereview.chromium.org/289283004/ . https://codereview.chromium.org/291653004/diff/1/ui/gfx/color_analysis.h File ui/gfx/color_analysis.h (right): ...
6 years, 7 months ago (2014-05-22 07:46:53 UTC) #3
Matt Giuca
https://codereview.chromium.org/291653004/diff/40001/ui/gfx/color_analysis.h File ui/gfx/color_analysis.h (right): https://codereview.chromium.org/291653004/diff/40001/ui/gfx/color_analysis.h#newcode58 ui/gfx/color_analysis.h:58: // |png/bitmap| represents the data of a png/bitmap encoded ...
6 years, 7 months ago (2014-05-23 03:20:14 UTC) #4
Alexei Svitkine (slow)
LGTM % nits https://codereview.chromium.org/291653004/diff/40001/ui/gfx/color_analysis.cc File ui/gfx/color_analysis.cc (right): https://codereview.chromium.org/291653004/diff/40001/ui/gfx/color_analysis.cc#newcode402 ui/gfx/color_analysis.cc:402: CalculateKMeanColorOfBuffer(reinterpret_cast<uint8_t*>(image.get()), Nit: Just return it directly. ...
6 years, 7 months ago (2014-05-26 18:20:48 UTC) #5
calamity
https://codereview.chromium.org/291653004/diff/40001/ui/gfx/color_analysis.cc File ui/gfx/color_analysis.cc (right): https://codereview.chromium.org/291653004/diff/40001/ui/gfx/color_analysis.cc#newcode402 ui/gfx/color_analysis.cc:402: CalculateKMeanColorOfBuffer(reinterpret_cast<uint8_t*>(image.get()), On 2014/05/26 18:20:49, Alexei Svitkine wrote: > Nit: ...
6 years, 7 months ago (2014-05-27 01:19:42 UTC) #6
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 7 months ago (2014-05-27 01:19:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/291653004/80001
6 years, 7 months ago (2014-05-27 01:19:57 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 05:23:37 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 05:31:07 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77760)
6 years, 7 months ago (2014-05-27 05:31:08 UTC) #11
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 7 months ago (2014-05-27 06:28:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/291653004/80001
6 years, 7 months ago (2014-05-27 06:28:25 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 06:44:58 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 06:50:08 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77775)
6 years, 7 months ago (2014-05-27 06:50:09 UTC) #16
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 7 months ago (2014-05-27 07:11:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/291653004/80001
6 years, 7 months ago (2014-05-27 07:12:07 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 07:18:19 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 07:23:55 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77782)
6 years, 7 months ago (2014-05-27 07:23:55 UTC) #21
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 7 months ago (2014-05-27 07:45:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/291653004/80001
6 years, 7 months ago (2014-05-27 07:45:47 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-27 07:52:26 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 08:00:36 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/77796)
6 years, 7 months ago (2014-05-27 08:00:37 UTC) #26
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 6 months ago (2014-05-28 00:34:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/291653004/80001
6 years, 6 months ago (2014-05-28 00:36:58 UTC) #28
commit-bot: I haz the power
6 years, 6 months ago (2014-05-28 01:27:56 UTC) #29
Message was sent while issue was closed.
Change committed as 273102

Powered by Google App Engine
This is Rietveld 408576698