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

Unified Diff: trunk/src/content/browser/renderer_host/render_widget_host_impl.cc

Issue 16326004: Revert 204014 "Don't track whether a resize ack is pending durin..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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: trunk/src/content/browser/renderer_host/render_widget_host_impl.cc
===================================================================
--- trunk/src/content/browser/renderer_host/render_widget_host_impl.cc (revision 204037)
+++ trunk/src/content/browser/renderer_host/render_widget_host_impl.cc (working copy)
@@ -85,8 +85,6 @@
namespace content {
namespace {
-bool g_check_for_pending_resize_ack = true;
-
// How long to (synchronously) wait for the renderer to respond with a
// PaintRect message, when our backing-store is invalid, before giving up and
// returning a null or incorrectly sized backing-store from GetBackingStore.
@@ -1217,11 +1215,6 @@
return GetRoutingID() | (static_cast<int64>(GetProcess()->GetID()) << 32);
}
-// static
-void RenderWidgetHostImpl::DisableResizeAckCheckForTesting() {
- g_check_for_pending_resize_ack = false;
-}
-
ui::LatencyInfo RenderWidgetHostImpl::NewInputLatencyInfo() {
ui::LatencyInfo info;
info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_COMPONENT,
@@ -1744,7 +1737,7 @@
// resize_ack_pending_ needs to be cleared before we call DidPaintRect, since
// that will end up reaching GetBackingStore.
if (is_resize_ack) {
- DCHECK(!g_check_for_pending_resize_ack || resize_ack_pending_);
+ DCHECK(resize_ack_pending_);
resize_ack_pending_ = false;
in_flight_size_.SetSize(0, 0);
}
« no previous file with comments | « trunk/src/content/browser/renderer_host/render_widget_host_impl.h ('k') | trunk/src/content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698