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

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

Issue 14779010: Don't expect ack for ViewMsg_OnResize if backing size is empty (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep short_circuit_size_update condition Created 7 years, 7 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_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 539e7d541158fb11373b6e3c60e60c2bcc2baf38..98646946830ab8fced1f5222b622fcadd914189c 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -335,12 +335,6 @@ gfx::Rect RenderWidgetHostViewAndroid::GetViewBounds() const {
if (!content_view_core_)
return gfx::Rect();
- // If the backing hasn't been initialized yet, report empty view bounds
- // as well. Otherwise, we may end up stuck in a white-screen state because
- // the resize ack is sent after swapbuffers.
- if (GetPhysicalBackingSize().IsEmpty())
- return gfx::Rect();
-
gfx::Size size = content_view_core_->GetViewportSizeDip();
gfx::Size offset = content_view_core_->GetViewportSizeOffsetDip();
size.Enlarge(-offset.width(), -offset.height());
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | content/public/test/render_widget_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698