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

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)

Created:
3 years, 10 months ago by Eric Seckler
Modified:
3 years, 8 months ago
Reviewers:
danakj, chrishtr, dgozman, nasko, lfg
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, nona+watch_chromium.org, piman+watch_chromium.org, shuchen+watch_chromium.org, James Su, yusukes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[content] Fix background color update handling in RWHVAura. RenderWidgetHostViewAura uses the background color provided in the CompositorFrame to update its own background color. This update should not result in telling the RenderView to turn its background transparent. BUG=689349 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2702153003 Cr-Commit-Position: refs/heads/master@{#462819} Committed: https://chromium.googlesource.com/chromium/src/+/2b39ff29fd0735b45f37cd0f2d4997847695aecf

Patch Set 1 #

Patch Set 2 : rename, cached color, comment update. #

Total comments: 5

Patch Set 3 : Remove GetBackgroundOpaque and base impls of accessors. #

Total comments: 8

Patch Set 4 : compare colors instead of alpha channel in tests #

Patch Set 5 : add back static_casts since compile complains otherwise. #

Total comments: 3

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : rebase: employ same mechanism in RWHVMac. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -43 lines) Patch
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 2 3 4 5 2 chunks +10 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 3 chunks +20 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 3 chunks +20 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 73 (37 generated)
Eric Seckler
Dmitry, are you happy reviewing this, too? cc-ing Dana and Chris, who have been changing ...
3 years, 10 months ago (2017-02-20 16:09:19 UTC) #4
dgozman
I think Chris is a better reviewer here.
3 years, 10 months ago (2017-02-21 19:44:31 UTC) #8
danakj
I think you'd do better to keep track of a state of opaqueness here or ...
3 years, 10 months ago (2017-02-21 19:51:51 UTC) #10
Eric Seckler
On 2017/02/21 19:51:51, danakj wrote: > I think you'd do better to keep track of ...
3 years, 10 months ago (2017-02-21 22:32:56 UTC) #11
danakj
On 2017/02/21 22:32:56, Eric Seckler wrote: > On 2017/02/21 19:51:51, danakj wrote: > > I ...
3 years, 10 months ago (2017-02-21 22:54:27 UTC) #12
Eric Seckler
On 2017/02/21 22:54:27, danakj wrote: > On 2017/02/21 22:32:56, Eric Seckler wrote: > > On ...
3 years, 10 months ago (2017-02-21 23:21:14 UTC) #13
danakj
On 2017/02/21 23:21:14, Eric Seckler wrote: > On 2017/02/21 22:54:27, danakj wrote: > > On ...
3 years, 10 months ago (2017-02-22 17:19:53 UTC) #14
Eric Seckler
On 2017/02/22 17:19:53, danakj wrote: > Thanks for the details! > > SetBackgroundOpaque is used ...
3 years, 10 months ago (2017-02-22 19:52:13 UTC) #15
Eric Seckler
On 2017/02/22 19:52:13, Eric Seckler wrote: > > It's a very strange feedback loop to ...
3 years, 10 months ago (2017-02-23 19:01:09 UTC) #16
danakj
On Wed, Feb 22, 2017 at 2:52 PM, <eseckler@chromium.org> wrote: > On 2017/02/22 17:19:53, danakj ...
3 years, 10 months ago (2017-02-24 15:38:06 UTC) #17
danakj
https://codereview.chromium.org/2702153003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2702153003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode757 content/browser/renderer_host/render_widget_host_view_aura.cc:757: host_->SetBackgroundOpaque(GetBackgroundOpaque()); I notice that other RenderWidgetHostViews do similar as ...
3 years, 10 months ago (2017-02-24 16:01:23 UTC) #18
danakj
https://codereview.chromium.org/2702153003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2702153003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode766 content/browser/renderer_host/render_widget_host_view_aura.cc:766: if (color == cached_background_color_) On 2017/02/24 16:01:23, danakj wrote: ...
3 years, 10 months ago (2017-02-24 16:04:08 UTC) #19
Eric Seckler
PTAL :) https://codereview.chromium.org/2702153003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2702153003/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode757 content/browser/renderer_host/render_widget_host_view_aura.cc:757: host_->SetBackgroundOpaque(GetBackgroundOpaque()); On 2017/02/24 16:01:23, danakj wrote: > ...
3 years, 9 months ago (2017-02-27 13:46:26 UTC) #24
chrishtr
Hi, back from vacation. It's currently the case that Blink will never set a non-opaque ...
3 years, 9 months ago (2017-02-27 20:02:36 UTC) #28
chrishtr
On 2017/02/27 at 20:02:36, chrishtr wrote: > Hi, back from vacation. > > It's currently ...
3 years, 9 months ago (2017-02-27 20:03:15 UTC) #29
Eric Seckler
On 2017/02/27 20:03:15, chrishtr wrote: > On 2017/02/27 at 20:02:36, chrishtr wrote: > > Hi, ...
3 years, 9 months ago (2017-02-27 20:11:37 UTC) #30
chrishtr
On 2017/02/27 at 20:11:37, eseckler wrote: > On 2017/02/27 20:03:15, chrishtr wrote: > > On ...
3 years, 9 months ago (2017-02-28 01:58:08 UTC) #31
danakj
LGTM https://codereview.chromium.org/2702153003/diff/60001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/2702153003/diff/60001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode893 content/browser/renderer_host/render_widget_host_unittest.cc:893: EXPECT_EQ(static_cast<unsigned>(SK_AlphaTRANSPARENT), You could just EXPECT_EQ(SK_ColorTRANSPARENT, view->background_color()). And maybe ...
3 years, 9 months ago (2017-02-28 17:52:31 UTC) #32
Eric Seckler
https://codereview.chromium.org/2702153003/diff/60001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/2702153003/diff/60001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode893 content/browser/renderer_host/render_widget_host_unittest.cc:893: EXPECT_EQ(static_cast<unsigned>(SK_AlphaTRANSPARENT), On 2017/02/28 17:52:31, danakj_OOO wrote: > You could ...
3 years, 9 months ago (2017-03-01 10:22:09 UTC) #34
Eric Seckler
Ok, sounds like Dana is happy, but we still need a content owner :) +nasko ...
3 years, 9 months ago (2017-03-01 10:32:50 UTC) #37
danakj
On Wed, Mar 1, 2017 at 5:22 AM, <eseckler@chromium.org> wrote: > > Technically this breaks ...
3 years, 9 months ago (2017-03-01 17:05:15 UTC) #44
nasko
Adding lfg@, who has dealt with background colors in the past and knows this better ...
3 years, 9 months ago (2017-03-01 18:24:53 UTC) #46
danakj
https://codereview.chromium.org/2702153003/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (left): https://codereview.chromium.org/2702153003/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h#oldcode450 content/browser/renderer_host/render_widget_host_view_base.h:450: SkColor background_color_; On 2017/03/01 18:24:53, nasko (slow) wrote: > ...
3 years, 9 months ago (2017-03-01 18:35:10 UTC) #47
danakj
https://codereview.chromium.org/2702153003/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (left): https://codereview.chromium.org/2702153003/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h#oldcode450 content/browser/renderer_host/render_widget_host_view_base.h:450: SkColor background_color_; On 2017/03/01 18:35:10, danakj_OOO wrote: > On ...
3 years, 9 months ago (2017-03-01 18:35:35 UTC) #48
nasko
On 2017/03/01 18:35:35, danakj wrote: > https://codereview.chromium.org/2702153003/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h > File content/browser/renderer_host/render_widget_host_view_base.h (left): > > https://codereview.chromium.org/2702153003/diff/120001/content/browser/renderer_host/render_widget_host_view_base.h#oldcode450 > ...
3 years, 9 months ago (2017-03-01 21:38:22 UTC) #49
lfg
I think there are multiple bugs here, but this isn't the right fix. - As ...
3 years, 9 months ago (2017-03-01 21:51:35 UTC) #50
lfg
not lgtm. Please address my comments before landing.
3 years, 9 months ago (2017-03-01 21:52:57 UTC) #51
Eric Seckler
On 2017/03/01 21:51:35, lfg wrote: > I think there are multiple bugs here, but this ...
3 years, 9 months ago (2017-03-01 22:15:43 UTC) #52
lfg
On 2017/03/01 22:15:43, Eric Seckler wrote: > On 2017/03/01 21:51:35, lfg wrote: > > I ...
3 years, 9 months ago (2017-03-01 22:48:27 UTC) #53
Eric Seckler
On 2017/03/01 22:48:27, lfg wrote: > On 2017/03/01 22:15:43, Eric Seckler wrote: > > On ...
3 years, 9 months ago (2017-03-01 23:00:41 UTC) #54
Eric Seckler
lfg@: now that https://codereview.chromium.org/2715243004/ has landed, can we revisit this? Are you OK with landing ...
3 years, 8 months ago (2017-04-06 11:39:26 UTC) #55
lfg
On 2017/04/06 11:39:26, Eric Seckler wrote: > lfg@: now that https://codereview.chromium.org/2715243004/ has landed, can we ...
3 years, 8 months ago (2017-04-06 18:37:41 UTC) #60
lfg
https://codereview.chromium.org/2702153003/diff/140001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2702153003/diff/140001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1438 content/browser/renderer_host/render_widget_host_view_mac.mm:1438: SetBackgroundColor(frame.metadata.root_background_color); Let's apply the same fix here as you ...
3 years, 8 months ago (2017-04-06 18:37:59 UTC) #61
Eric Seckler
Thanks! https://codereview.chromium.org/2702153003/diff/140001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/2702153003/diff/140001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1438 content/browser/renderer_host/render_widget_host_view_mac.mm:1438: SetBackgroundColor(frame.metadata.root_background_color); On 2017/04/06 18:37:59, lfg wrote: > Let's ...
3 years, 8 months ago (2017-04-07 08:27:41 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2702153003/160001
3 years, 8 months ago (2017-04-07 09:22:27 UTC) #70
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 09:27:47 UTC) #73
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/2b39ff29fd0735b45f37cd0f2d49...

Powered by Google App Engine
This is Rietveld 408576698