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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2707403004: Unify background color gutters. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/android/compositor/tab_content_manager.cc ('k') | ui/android/delegated_frame_host_android.h » ('j') | 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_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index bf8d780a44d53418c7f4b63ab07ad68cac099cfb..53c758f11f2760db6d1ec2218b6fdc475ba4ecbb 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -447,8 +447,8 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
if (using_browser_compositor_) {
cc::FrameSinkId frame_sink_id =
host_->AllocateFrameSinkId(false /* is_guest_view_hack */);
- delegated_frame_host_.reset(new ui::DelegatedFrameHostAndroid(
- &view_, cached_background_color_, this, frame_sink_id));
+ delegated_frame_host_.reset(
+ new ui::DelegatedFrameHostAndroid(&view_, this, frame_sink_id));
}
host_->SetView(this);
@@ -515,9 +515,6 @@ RenderWidgetHostViewAndroid::GetRenderWidgetHost() const {
}
void RenderWidgetHostViewAndroid::WasResized() {
- if (delegated_frame_host_ && content_view_core_)
- delegated_frame_host_->UpdateContainerSizeinDIP(
- content_view_core_->GetViewportSizeDip());
host_->WasResized();
}
@@ -787,9 +784,6 @@ void RenderWidgetHostViewAndroid::UpdateBackgroundColor(SkColor color) {
cached_background_color_ = color;
- if (delegated_frame_host_)
- delegated_frame_host_->UpdateBackgroundColor(color);
-
view_.OnBackgroundColorChanged(color);
}
« no previous file with comments | « chrome/browser/android/compositor/tab_content_manager.cc ('k') | ui/android/delegated_frame_host_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698