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); |
} |