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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 2702153003: [content] Fix background color update handling in RWHVAura. (Closed)
Patch Set: rename, cached color, comment update. Created 3 years, 10 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
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index dabb04812ca2bc06b00a9089d49b27dace889d67..08da466fc38d8066461803a183f24882be69d3c1 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -465,6 +465,10 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// Adds/Removes frame observer based on state.
void UpdateNeedsBeginFramesInternal();
+ // Applies background color without notifying the RenderWidget about
+ // opaqueness changes.
+ void UpdateBackgroundColorFromRenderer(SkColor color);
+
// The model object.
RenderWidgetHostImpl* const host_;
@@ -586,6 +590,9 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// provides an implementation, and directs events to |host_|.
std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
+ // Body background color of the underlying document.
+ SkColor cached_background_color_;
+
base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);

Powered by Google App Engine
This is Rietveld 408576698