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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 2752523008: Set compositor and CALayer background color from frames (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 6266020394b9c38dc5f81004bb00d63d139d0dad..0cb516b4f5c9fab8f0112a633e9211407d9c6a6d 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1431,6 +1431,10 @@ new BrowserCompositorMac(this, this, render_widget_host_->is_hidden(),
cc::CompositorFrame frame) {
TRACE_EVENT0("browser", "RenderWidgetHostViewMac::OnSwapCompositorFrame");
+ // Override the compositor background color. See RenderWidgetHostViewAura
+ // for more details.
+ SetBackgroundColor(frame.metadata.root_background_color);
+
last_scroll_offset_ = frame.metadata.root_scroll_offset;
page_at_minimum_scale_ =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698