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

Issue 10823012: Fix the errors of ui unittests caused by packing colors for Android (Closed)

Created:
8 years, 5 months ago by yongsheng
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org, Shouqun Liu, benm (inactive)
Visibility:
Public.

Description

Fix the errors of ui unittests caused by packing colors for Android Get the platform-independent result and compare them with the values of SkColor which is the platform-independent ARGB format BUG=138933 TEST=run_tests.py -s ui_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150772

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change image_unittest #

Patch Set 3 : Refine changes in skbitmap_operations_unittest #

Patch Set 4 : Remove disabled cases #

Total comments: 4

Patch Set 5 : Refine the patch with comments #

Total comments: 4

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -8 lines) Patch
M build/android/gtest_filter/ui_unittests_disabled View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M ui/gfx/skbitmap_operations_unittest.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
yongsheng
on Android, it packs colors as RGBA while other platforms uses ARGB. so use the ...
8 years, 5 months ago (2012-07-25 14:47:48 UTC) #1
Robert Sesek
http://codereview.chromium.org/10823012/diff/1/ui/gfx/image/image_unittest.cc File ui/gfx/image/image_unittest.cc (right): http://codereview.chromium.org/10823012/diff/1/ui/gfx/image/image_unittest.cc#newcode201 ui/gfx/image/image_unittest.cc:201: #define ColorRed SetPackedColor(0xFF, 0xFF, 0x00, 0x00) Since you only ...
8 years, 5 months ago (2012-07-25 15:36:53 UTC) #2
Ben Goodger (Google)
Do you really need 5 people to review this change?
8 years, 5 months ago (2012-07-25 15:51:33 UTC) #3
yongsheng
On 2012/07/25 15:51:33, Ben Goodger (Google) wrote: > Do you really need 5 people to ...
8 years, 5 months ago (2012-07-26 01:21:48 UTC) #4
yongsheng
what about other files? anyone who can help review them? http://codereview.chromium.org/10823012/diff/1/ui/gfx/image/image_unittest.cc File ui/gfx/image/image_unittest.cc (right): http://codereview.chromium.org/10823012/diff/1/ui/gfx/image/image_unittest.cc#newcode201 ...
8 years, 5 months ago (2012-07-26 01:24:18 UTC) #5
yongsheng
michaelbai, since you're the owner of changing the behaviors of skia for android, any comments ...
8 years, 5 months ago (2012-07-26 02:34:32 UTC) #6
michaelbai
Thanks for handing this, I just give a quick look, the obvious issue seemed that ...
8 years, 5 months ago (2012-07-26 16:48:29 UTC) #7
michaelbai
8 years, 5 months ago (2012-07-26 16:53:57 UTC) #8
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10823012/diff/9/webkit/media/skcanvas_video_renderer_unittest.cc File webkit/media/skcanvas_video_renderer_unittest.cc (right): http://codereview.chromium.org/10823012/diff/9/webkit/media/skcanvas_video_renderer_unittest.cc#newcode137 webkit/media/skcanvas_video_renderer_unittest.cc:137: EXPECT_EQ(ColorRed, GetColor(fast_path_canvas())); I don't know skia very much at ...
8 years, 5 months ago (2012-07-26 17:20:03 UTC) #9
yongsheng
On 2012/07/26 16:48:29, michaelbai wrote: > Thanks for handing this, I just give a quick ...
8 years, 4 months ago (2012-07-27 00:05:34 UTC) #10
yongsheng
On 2012/07/26 17:20:03, Ami Fischman wrote: > http://codereview.chromium.org/10823012/diff/9/webkit/media/skcanvas_video_renderer_unittest.cc > File webkit/media/skcanvas_video_renderer_unittest.cc (right): > > http://codereview.chromium.org/10823012/diff/9/webkit/media/skcanvas_video_renderer_unittest.cc#newcode137 ...
8 years, 4 months ago (2012-07-27 00:10:14 UTC) #11
Ami GONE FROM CHROMIUM
http://codereview.chromium.**org/10823012/diff/9/webkit/** media/skcanvas_video_renderer_**unittest.cc#newcode137<http://codereview.chromium.org/10823012/diff/9/webkit/media/skcanvas_video_renderer_unittest.cc#newcode137> > webkit/media/skcanvas_video_**renderer_unittest.cc:137: >> EXPECT_EQ(ColorRed, >> GetColor(fast_path_canvas())); >> I don't know skia very much ...
8 years, 4 months ago (2012-07-27 15:35:16 UTC) #12
yongsheng
On 2012/07/27 15:35:16, Ami Fischman wrote: > http://codereview.chromium.**org/10823012/diff/9/webkit/** > media/skcanvas_video_renderer_**unittest.cc#newcode137<http://codereview.chromium.org/10823012/diff/9/webkit/media/skcanvas_video_renderer_unittest.cc#newcode137> > > > webkit/media/skcanvas_video_**renderer_unittest.cc:137: > ...
8 years, 4 months ago (2012-07-29 01:10:42 UTC) #13
Robert Sesek
ui/gfx/image LGTM
8 years, 4 months ago (2012-07-31 00:11:00 UTC) #14
sky
http://codereview.chromium.org/10823012/diff/9/ui/gfx/image/image_unittest.cc File ui/gfx/image/image_unittest.cc (right): http://codereview.chromium.org/10823012/diff/9/ui/gfx/image/image_unittest.cc#newcode197 ui/gfx/image/image_unittest.cc:197: inline uint32_t SetPackedColor(uint8_t a, uint8_t r, uint8_t g, uint8_t ...
8 years, 4 months ago (2012-08-02 21:02:00 UTC) #15
yongsheng
really thanks for all of your comments. I rethink about this and refine this patch ...
8 years, 4 months ago (2012-08-06 06:37:21 UTC) #16
yongsheng
> These failures are due to the conversion between YUV and argb32 has the > ...
8 years, 4 months ago (2012-08-06 06:55:42 UTC) #17
reed1
http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc File ui/gfx/skbitmap_operations_unittest.cc (right): http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc#newcode480 ui/gfx/skbitmap_operations_unittest.cc:480: // Set PMColors into the bitmap The last value ...
8 years, 4 months ago (2012-08-06 12:42:43 UTC) #18
yongsheng
rsesek, since you're the owner, do you know the reason? http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc File ui/gfx/skbitmap_operations_unittest.cc (right): http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc#newcode480 ...
8 years, 4 months ago (2012-08-07 01:18:40 UTC) #19
reed1
On 2012/08/07 01:18:40, yongsheng wrote: > rsesek, since you're the owner, do you know the ...
8 years, 4 months ago (2012-08-07 12:55:26 UTC) #20
Robert Sesek
On 2012/08/07 12:55:26, reed1 wrote: > On 2012/08/07 01:18:40, yongsheng wrote: > > rsesek, since ...
8 years, 4 months ago (2012-08-07 13:47:20 UTC) #21
tony
+nico, the author of the test.
8 years, 4 months ago (2012-08-07 23:33:43 UTC) #22
Nico
lgtm http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc File ui/gfx/skbitmap_operations_unittest.cc (right): http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc#newcode480 ui/gfx/skbitmap_operations_unittest.cc:480: // Set PMColors into the bitmap On 2012/08/07 ...
8 years, 4 months ago (2012-08-07 23:39:40 UTC) #23
yongsheng
any other concerns? http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc File ui/gfx/skbitmap_operations_unittest.cc (right): http://codereview.chromium.org/10823012/diff/14002/ui/gfx/skbitmap_operations_unittest.cc#newcode480 ui/gfx/skbitmap_operations_unittest.cc:480: // Set PMColors into the bitmap ...
8 years, 4 months ago (2012-08-08 00:20:35 UTC) #24
sky
LGTM
8 years, 4 months ago (2012-08-08 04:15:43 UTC) #25
yongsheng
On 2012/08/08 04:15:43, sky wrote: > LGTM thanks, I'll wait for more comments. If no, ...
8 years, 4 months ago (2012-08-08 08:37:43 UTC) #26
yongsheng
On 2012/08/08 08:37:43, yongsheng wrote: > On 2012/08/08 04:15:43, sky wrote: > > LGTM > ...
8 years, 4 months ago (2012-08-09 08:18:48 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yongsheng.zhu@intel.com/10823012/3004
8 years, 4 months ago (2012-08-09 08:19:04 UTC) #28
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 09:54:40 UTC) #29
Change committed as 150772

Powered by Google App Engine
This is Rietveld 408576698