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

Issue 273783004: add --readJsonSummaryPath to render_pictures (Closed)

Created:
6 years, 7 months ago by epoger
Modified:
6 years, 7 months ago
Reviewers:
borenet
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

add --readJsonSummaryPath to render_pictures BUG=skia:1942 Committed: http://code.google.com/p/skia/source/detail?r=14695

Patch Set 1 #

Total comments: 6

Patch Set 2 : rename ImageResultsSummary to ImageResultsAndExpectations #

Patch Set 3 : add unittest for missing whole-image/tiled-image #

Patch Set 4 : make BitmapAndDigest lazily compute the bitmap #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+397 lines, -112 lines) Patch
M tools/PictureRenderer.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 7 chunks +13 lines, -24 lines 1 comment Download
M tools/image_expectations.h View 1 2 3 2 chunks +77 lines, -12 lines 0 comments Download
M tools/image_expectations.cpp View 1 2 3 3 chunks +117 lines, -17 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 5 chunks +10 lines, -5 lines 0 comments Download
M tools/tests/render_pictures_test.py View 1 2 14 chunks +178 lines, -52 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
epoger
OK, we're back to the level of functionality I had in https://codereview.chromium.org/261313004/ ... but now ...
6 years, 7 months ago (2014-05-09 15:37:13 UTC) #1
borenet
Seems right. A couple of concerns. https://codereview.chromium.org/273783004/diff/1/tools/PictureRenderer.cpp File tools/PictureRenderer.cpp (left): https://codereview.chromium.org/273783004/diff/1/tools/PictureRenderer.cpp#oldcode289 tools/PictureRenderer.cpp:289: // Make sure ...
6 years, 7 months ago (2014-05-09 15:54:01 UTC) #2
epoger
Thanks, Eric. I made a couple of changes in response to your comments... I'll let ...
6 years, 7 months ago (2014-05-09 16:06:24 UTC) #3
epoger
Eric- PTAL as of patchset 4. I have resolved all issues that I know of...
6 years, 7 months ago (2014-05-09 18:09:05 UTC) #4
epoger
On 2014/05/09 18:09:05, epoger wrote: > Eric- PTAL as of patchset 4. I have resolved ...
6 years, 7 months ago (2014-05-12 15:16:23 UTC) #5
borenet
Yikes! Sorry I missed this. LGTM at patch set 4.
6 years, 7 months ago (2014-05-12 15:23:00 UTC) #6
epoger
The CQ bit was checked by epoger@google.com
6 years, 7 months ago (2014-05-12 15:28:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/epoger@google.com/273783004/60001
6 years, 7 months ago (2014-05-12 15:28:57 UTC) #8
commit-bot: I haz the power
Change committed as 14695
6 years, 7 months ago (2014-05-12 15:37:35 UTC) #9
epoger
Looks like this CL may have made bench_pictures take longer to run (looks like the ...
6 years, 7 months ago (2014-05-20 19:22:55 UTC) #10
epoger
6 years, 7 months ago (2014-05-20 19:41:57 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/273783004/diff/60001/tools/PictureRenderer.cpp
File tools/PictureRenderer.cpp (right):

https://codereview.chromium.org/273783004/diff/60001/tools/PictureRenderer.cp...
tools/PictureRenderer.cpp:299: const ImageDigest *imageDigestPtr =
bitmapAndDigest.getImageDigestPtr();
I think this probably accounts for the measured performance change.

Before this CL, this code was manually making sure that the hash (a.k.a. "image
digest") was only computed if needed.

In this CL, I added the BitmapAndDigest class that handles the lazy hash
computation... but for some reason I called getImageDigestPtr() here, rather
than waiting until inside the if-check below!  So we are computing the hash
every time now, instead of only when needed.

I have created a CL that should return performance to what it was before this
one: https://codereview.chromium.org/299763002

Powered by Google App Engine
This is Rietveld 408576698