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

Issue 371863002: cc: For cc pixel test, create data url for pngs and print bounding rect. (Closed)

Created:
6 years, 5 months ago by sohanjg
Modified:
6 years, 5 months ago
Reviewers:
danakj, vmpstr, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: For cc pixel test, create data url for pngs and print bounding rect. This creates data url for both output and expected pngs, and prints the error bounding rect. BUG=236196 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282127

Patch Set 1 #

Total comments: 6

Patch Set 2 : use gfx::Rect instead of max co-ordinates #

Total comments: 2

Patch Set 3 : review comments updated. #

Total comments: 2

Patch Set 4 : review comments addressed. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -26 lines) Patch
M cc/test/pixel_comparator.cc View 1 2 3 5 chunks +10 lines, -26 lines 0 comments Download
M cc/test/pixel_test_utils.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/pixel_test_utils.cc View 1 3 chunks +18 lines, -0 lines 2 comments Download

Messages

Total messages: 13 (0 generated)
sohanjg
Can you please take a look. Thanks.
6 years, 5 months ago (2014-07-07 07:50:39 UTC) #1
danakj
https://codereview.chromium.org/371863002/diff/1/cc/test/pixel_comparator.cc File cc/test/pixel_comparator.cc (right): https://codereview.chromium.org/371863002/diff/1/cc/test/pixel_comparator.cc#newcode22 cc/test/pixel_comparator.cc:22: int minimum_difference_x = -99; Can you just use a ...
6 years, 5 months ago (2014-07-07 16:07:02 UTC) #2
sohanjg
Please take a look. Thanks. https://codereview.chromium.org/371863002/diff/1/cc/test/pixel_comparator.cc File cc/test/pixel_comparator.cc (right): https://codereview.chromium.org/371863002/diff/1/cc/test/pixel_comparator.cc#newcode22 cc/test/pixel_comparator.cc:22: int minimum_difference_x = -99; ...
6 years, 5 months ago (2014-07-08 07:31:08 UTC) #3
danakj
https://codereview.chromium.org/371863002/diff/40001/cc/test/pixel_comparator.cc File cc/test/pixel_comparator.cc (right): https://codereview.chromium.org/371863002/diff/40001/cc/test/pixel_comparator.cc#newcode22 cc/test/pixel_comparator.cc:22: // Bounding box for error nit: comments are sentences ...
6 years, 5 months ago (2014-07-08 16:08:34 UTC) #4
sohanjg
Can you please take a look. Thanks. https://codereview.chromium.org/371863002/diff/40001/cc/test/pixel_comparator.cc File cc/test/pixel_comparator.cc (right): https://codereview.chromium.org/371863002/diff/40001/cc/test/pixel_comparator.cc#newcode22 cc/test/pixel_comparator.cc:22: // Bounding ...
6 years, 5 months ago (2014-07-08 16:20:34 UTC) #5
danakj
https://codereview.chromium.org/371863002/diff/60001/cc/test/pixel_comparator.cc File cc/test/pixel_comparator.cc (right): https://codereview.chromium.org/371863002/diff/60001/cc/test/pixel_comparator.cc#newcode42 cc/test/pixel_comparator.cc:42: error_bounding_rect.set_x(std::min(x, error_bounding_rect.x())); Sorry, I had asked about this earlier ...
6 years, 5 months ago (2014-07-08 16:46:47 UTC) #6
sohanjg
Can you please take a look, Thanks. https://codereview.chromium.org/371863002/diff/60001/cc/test/pixel_comparator.cc File cc/test/pixel_comparator.cc (right): https://codereview.chromium.org/371863002/diff/60001/cc/test/pixel_comparator.cc#newcode42 cc/test/pixel_comparator.cc:42: error_bounding_rect.set_x(std::min(x, error_bounding_rect.x())); ...
6 years, 5 months ago (2014-07-09 05:25:52 UTC) #7
danakj
Thanks this is great LGTM
6 years, 5 months ago (2014-07-09 16:05:56 UTC) #8
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 5 months ago (2014-07-09 16:05:58 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/371863002/80001
6 years, 5 months ago (2014-07-09 16:07:10 UTC) #10
commit-bot: I haz the power
Change committed as 282127
6 years, 5 months ago (2014-07-09 21:23:49 UTC) #11
vmpstr
https://codereview.chromium.org/371863002/diff/80001/cc/test/pixel_test_utils.cc File cc/test/pixel_test_utils.cc (right): https://codereview.chromium.org/371863002/diff/80001/cc/test/pixel_test_utils.cc#newcode77 cc/test/pixel_test_utils.cc:77: LOG(ERROR) << "Pixels do not match!"; Is this meant ...
6 years, 5 months ago (2014-07-11 02:57:04 UTC) #12
sohanjg
6 years, 5 months ago (2014-07-11 05:15:21 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/371863002/diff/80001/cc/test/pixel_test_utils.cc
File cc/test/pixel_test_utils.cc (right):

https://codereview.chromium.org/371863002/diff/80001/cc/test/pixel_test_utils...
cc/test/pixel_test_utils.cc:77: LOG(ERROR) << "Pixels do not match!";
On 2014/07/11 02:57:04, vmpstr wrote:
> Is this meant to be printed only if comparator.Compare(gen_bmp, ref_bmp)
returns
> false?

Yeah, right! its better to log it based on Compare result.
Will update, thanks!

Powered by Google App Engine
This is Rietveld 408576698