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

Issue 1731373002: Allow to have a transparent UA dependent background. (Closed)

Created:
4 years, 10 months ago by Julien Isorce Samsung
Modified:
4 years, 4 months ago
CC:
chromium-reviews, tfarina, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow to have a transparent UA dependent background. * --no-ua-dependent-background: avoid the call to contents_container_->set_background in BrowserView::InitViews(). * --transparent-background-rwhv: testing option to manually call RenderWidgetHostView->SetBackgroundColor(SK_ColorTRANSPARENT). * WebView::OnPaintBackground: check if bbackground is set to be opaque before drawing background setup from ContentsWebView::OnThemeChanged() (CreateSolidBackground) * DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent(): return "use_argb_visual_;" from ) instead of always false. It allows to have the non opaque layer for PaintLayerCompositor::rootGraphicsLayer() ("Frame Overflow Controls Host Layer"). It corresponds to BrowserView::frame_->GetLayer(). So the layer for window named "BrowserFrameAura". It also makes consistency with DesktopWindowTreeHostX11::SetWindowTransparency() that uses "use_argb_visual_". R= BUG=589509 TEST: ./out/Release/chrome --enable-transparent-visuals --no-ua-dependent-background --transparent-background-rwhv

Patch Set 1 #

Total comments: 8

Patch Set 2 : Decouple background color and transparency in RenderWidgetHostView #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -3 lines) Patch
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/webview/webview.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/webview/webview.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 31 (14 generated)
Julien Isorce Samsung
Hi, the important bit in this CL is in cc/layers/picture_layer_impl.cc: needs_blending = render_pass->has_transparent_background; Changes in ...
4 years, 10 months ago (2016-02-24 22:47:13 UTC) #6
trchen
https://codereview.chromium.org/1731373002/diff/1/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1731373002/diff/1/cc/layers/picture_layer_impl.cc#newcode99 cc/layers/picture_layer_impl.cc:99: #endif This doesn't make sense to me. Why does ...
4 years, 10 months ago (2016-02-25 02:30:12 UTC) #8
Julien Isorce Samsung
Thx for the review here are my replies. If you have additional hints to properly ...
4 years, 10 months ago (2016-02-25 11:33:55 UTC) #10
trchen
I see. Basically this is a proof of concept that is not meant to be ...
4 years, 9 months ago (2016-02-25 23:07:55 UTC) #11
Julien Isorce Samsung
On 2016/02/25 23:07:55, trchen wrote: > I see. Basically this is a proof of concept ...
4 years, 9 months ago (2016-03-03 18:29:44 UTC) #13
Julien Isorce Samsung
In addition to the previous comment, it is worth to mention that I updated the ...
4 years, 9 months ago (2016-03-03 18:33:46 UTC) #14
trchen
I don't think the changes in cc and blink are correct or even needed. All ...
4 years, 9 months ago (2016-03-08 01:57:21 UTC) #15
Julien Isorce Samsung
On 2016/03/08 01:57:21, trchen wrote: > I don't think the changes in cc and blink ...
4 years, 9 months ago (2016-03-15 17:52:19 UTC) #16
trchen
On 2016/03/15 17:52:19, j.isorce wrote: > On 2016/03/08 01:57:21, trchen wrote: > https://codereview.chromium.org/1731373002/diff/20001/cc/layers/picture_layer_impl.cc > > ...
4 years, 9 months ago (2016-03-15 21:04:26 UTC) #17
Julien Isorce Samsung
On 2016/03/15 21:04:26, trchen wrote: > On 2016/03/15 17:52:19, j.isorce wrote: > > On 2016/03/08 ...
4 years, 9 months ago (2016-03-16 16:44:13 UTC) #19
Julien Isorce Samsung
On 2016/03/15 21:04:26, trchen wrote: > For your application, I believe it is the case ...
4 years, 9 months ago (2016-03-23 17:32:20 UTC) #20
trchen
On 2016/03/23 17:32:20, j.isorce wrote: > Please let me know what you think about "Patch ...
4 years, 9 months ago (2016-03-24 19:38:37 UTC) #21
Julien Isorce Samsung
On 2016/03/24 19:38:37, trchen wrote: > On 2016/03/23 17:32:20, j.isorce wrote: > > Please let ...
4 years, 9 months ago (2016-03-24 20:45:28 UTC) #22
jam
a few questions: 1) why are you changing src\chrome? Is your browser embedding at the ...
4 years, 8 months ago (2016-04-01 23:26:58 UTC) #28
Julien Isorce Samsung
On 2016/04/01 23:26:58, jam wrote: > a few questions: > 1) why are you changing ...
4 years, 8 months ago (2016-04-04 12:18:06 UTC) #29
Julien Isorce Samsung
I think the change https://codereview.chromium.org/1731373002/patch/40001/50009 fixes a real bug if I am not mistaken. Could ...
4 years, 7 months ago (2016-04-28 17:53:32 UTC) #30
Julien Isorce Samsung
4 years, 4 months ago (2016-08-17 13:42:34 UTC) #31
On 2016/04/28 17:53:32, Julien Isorce wrote:
> I think the change
https://codereview.chromium.org/1731373002/patch/40001/50009
> fixes a real bug if I am not mistaken. Could anyone comment on this specific
> change ? Thx.

That later change has landed in another CL of mine since then, and other parts
of this CL
are not a good to have in upstream so lets close it. Thx.

Powered by Google App Engine
This is Rietveld 408576698