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

Issue 108333004: [telemetry] Implement per-pixel algorithms in Bitmap as a C++ extension. (Closed)

Created:
7 years ago by szym
Modified:
7 years ago
Reviewers:
bulach, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[telemetry] Implement per-pixel algorithms in Bitmap as a C++ extension. BUG=323813 TEST=telemetry bitmap_unittest R=bulach@chromium.org, tonyg@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241066

Patch Set 1 : . #

Patch Set 2 : merge ColorCount into BoundingBox #

Patch Set 3 : update StopVideoCapture #

Total comments: 16

Patch Set 4 : fix Equal to handle width crop #

Patch Set 5 : added comment that IsEqual does not compare alpha #

Total comments: 19

Patch Set 6 : old Crop interface; add copyright #

Total comments: 6

Patch Set 7 : Build bitmaptools in a temp directory #

Patch Set 8 : workaround for distutils with 64-bit msvc9 #

Patch Set 9 : import _winreg #

Total comments: 4

Patch Set 10 : style; simplify #

Total comments: 2

Patch Set 11 : use framework and sdk afterall #

Patch Set 12 : shorter workaround #

Patch Set 13 : another attempt #

Patch Set 14 : Refactor. Always try to import bitmaptools. #

Patch Set 15 : new assert #

Patch Set 16 : add faster IsEqual for zero-tolerance, bpp=3 comparison #

Patch Set 17 : delint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -73 lines) Patch
M tools/telemetry/telemetry/core/bitmap.py View 1 2 3 4 5 6 chunks +44 lines, -65 lines 0 comments Download
M tools/telemetry/telemetry/core/bitmap_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +30 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/bitmaptools/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +72 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +263 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/tab.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
szym
7 years ago (2013-12-12 10:57:17 UTC) #1
bulach
very nice indeed!! although I'm a bit familiar with JNI, this the first time I'm ...
7 years ago (2013-12-12 14:00:35 UTC) #2
szym
https://codereview.chromium.org/108333004/diff/70001/tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc File tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc (right): https://codereview.chromium.org/108333004/diff/70001/tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc#newcode101 tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc:101: int total_size, row_size; // in bytes On 2013/12/12 14:00:35, ...
7 years ago (2013-12-12 19:17:09 UTC) #3
tonyg
https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmap.py File tools/telemetry/telemetry/core/bitmap.py (right): https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmap.py#newcode135 tools/telemetry/telemetry/core/bitmap.py:135: Ignores alpha channel.""" I don't think ignoring alpha was ...
7 years ago (2013-12-12 22:17:48 UTC) #4
szym
https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmap.py File tools/telemetry/telemetry/core/bitmap.py (right): https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmap.py#newcode135 tools/telemetry/telemetry/core/bitmap.py:135: Ignores alpha channel.""" On 2013/12/12 22:17:48, tonyg wrote: > ...
7 years ago (2013-12-12 22:54:12 UTC) #5
tonyg
https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmaptools/__init__.py File tools/telemetry/telemetry/core/bitmaptools/__init__.py (right): https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmaptools/__init__.py#newcode30 tools/telemetry/telemetry/core/bitmaptools/__init__.py:30: dist.run_commands() On 2013/12/12 22:54:12, szym wrote: > On 2013/12/12 ...
7 years ago (2013-12-12 23:19:02 UTC) #6
szym
https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmaptools/__init__.py File tools/telemetry/telemetry/core/bitmaptools/__init__.py (right): https://codereview.chromium.org/108333004/diff/110001/tools/telemetry/telemetry/core/bitmaptools/__init__.py#newcode30 tools/telemetry/telemetry/core/bitmaptools/__init__.py:30: dist.run_commands() On 2013/12/12 23:19:02, tonyg wrote: > On 2013/12/12 ...
7 years ago (2013-12-12 23:30:35 UTC) #7
tonyg
> How can we check if it works on all platforms? kick off a try ...
7 years ago (2013-12-12 23:40:14 UTC) #8
tonyg
On 2013/12/12 23:40:14, tonyg wrote: > > How can we check if it works on ...
7 years ago (2013-12-12 23:40:58 UTC) #9
szym
On 2013/12/12 23:40:58, tonyg wrote: > On 2013/12/12 23:40:14, tonyg wrote: > > > How ...
7 years ago (2013-12-13 00:23:49 UTC) #10
tonyg
On 2013/12/13 00:23:49, szym wrote: > On 2013/12/12 23:40:58, tonyg wrote: > > On 2013/12/12 ...
7 years ago (2013-12-13 00:42:41 UTC) #11
szym
On Thu, Dec 12, 2013 at 4:42 PM, <tonyg@chromium.org> wrote: > > Fails to compile ...
7 years ago (2013-12-13 01:07:25 UTC) #12
tonyg
On 2013/12/13 01:07:25, szym wrote: > On Thu, Dec 12, 2013 at 4:42 PM, <mailto:tonyg@chromium.org> ...
7 years ago (2013-12-13 01:13:04 UTC) #13
szym
Seems to be working. This should do fine for the bots. For end-users of telemetry ...
7 years ago (2013-12-13 03:36:15 UTC) #14
tonyg
lgtm assuming these comments and my previous ones are all address and the trybots including ...
7 years ago (2013-12-13 03:59:11 UTC) #15
bulach
lgtm, thanks for the clarifications! ignorable nit below, looking forward to see the results! https://codereview.chromium.org/108333004/diff/250001/tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc ...
7 years ago (2013-12-13 11:43:13 UTC) #16
szym
https://codereview.chromium.org/108333004/diff/230001/tools/telemetry/telemetry/core/bitmaptools/__init__.py File tools/telemetry/telemetry/core/bitmaptools/__init__.py (right): https://codereview.chromium.org/108333004/diff/230001/tools/telemetry/telemetry/core/bitmaptools/__init__.py#newcode11 tools/telemetry/telemetry/core/bitmaptools/__init__.py:11: def _FixedQueryVCVarsAll(version, arch="x86"): On 2013/12/13 03:59:11, tonyg wrote: > ...
7 years ago (2013-12-14 11:30:01 UTC) #17
tonyg
re-lgtm Nice! This looks really solid now. Feel free to land whenever all the bots ...
7 years ago (2013-12-14 14:20:42 UTC) #18
szym
https://codereview.chromium.org/108333004/diff/130001/tools/telemetry/telemetry/core/tab.py File tools/telemetry/telemetry/core/tab.py (right): https://codereview.chromium.org/108333004/diff/130001/tools/telemetry/telemetry/core/tab.py#newcode150 tools/telemetry/telemetry/core/tab.py:150: 'Unexpectedly small tab contents' On 2013/12/14 14:20:43, tonyg wrote: ...
7 years ago (2013-12-14 21:01:42 UTC) #19
tonyg
On 2013/12/14 21:01:42, szym wrote: > https://codereview.chromium.org/108333004/diff/130001/tools/telemetry/telemetry/core/tab.py > File tools/telemetry/telemetry/core/tab.py (right): > > https://codereview.chromium.org/108333004/diff/130001/tools/telemetry/telemetry/core/tab.py#newcode150 > ...
7 years ago (2013-12-14 21:05:51 UTC) #20
szym
https://codereview.chromium.org/108333004/diff/250001/tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc File tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc (right): https://codereview.chromium.org/108333004/diff/250001/tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc#newcode177 tools/telemetry/telemetry/core/bitmaptools/bitmaptools.cc:177: if (!PixelsEqual(pixel1, pixel2, tolerance)) On 2013/12/13 11:43:14, bulach wrote: ...
7 years ago (2013-12-14 21:23:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/108333004/470001
7 years ago (2013-12-16 11:02:27 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=41543
7 years ago (2013-12-16 11:15:00 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/108333004/490001
7 years ago (2013-12-16 11:27:29 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204656
7 years ago (2013-12-16 12:13:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/108333004/490001
7 years ago (2013-12-16 14:17:36 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204752
7 years ago (2013-12-16 15:42:54 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/108333004/490001
7 years ago (2013-12-16 17:44:40 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=204951
7 years ago (2013-12-16 19:06:40 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/108333004/490001
7 years ago (2013-12-16 19:42:24 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205167
7 years ago (2013-12-16 22:51:30 UTC) #31
tonyg
On 2013/12/16 22:51:30, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years ago (2013-12-16 23:29:40 UTC) #32
szym
Committed patchset #17 manually as r241066 (presubmit successful).
7 years ago (2013-12-16 23:48:29 UTC) #33
szym
7 years ago (2013-12-17 00:35:41 UTC) #34
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/116903002/ by szym@chromium.org.

The reason for reverting is: Fails on ChromiumOS on main waterfall..

Powered by Google App Engine
This is Rietveld 408576698