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

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

Issue 286233002: Remove RWHI::view_being_painted_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index a8fe60fd877c350048628c8a9068b337dabe51af..3cfe3c79d50de4b8346fa4aac42317fde5eba446 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -182,7 +182,6 @@ RenderWidgetHostImpl::RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
is_unresponsive_(false),
in_flight_event_count_(0),
in_get_backing_store_(false),
- view_being_painted_(false),
ignore_input_events_(false),
input_method_active_(false),
text_direction_updated_(false),
@@ -747,7 +746,7 @@ bool RenderWidgetHostImpl::CanPauseForPendingResizeOrRepaints() {
return false;
// Do not pause if there is not a paint or resize already coming.
- if (!repaint_ack_pending_ && !resize_ack_pending_ && !view_being_painted_)
+ if (!repaint_ack_pending_ && !resize_ack_pending_)
return false;
return true;
@@ -796,7 +795,7 @@ void RenderWidgetHostImpl::WaitForSurface() {
// We do not have a suitable backing store in the cache, so send out a
// request to the renderer to paint the view if required.
- if (!repaint_ack_pending_ && !resize_ack_pending_ && !view_being_painted_) {
+ if (!repaint_ack_pending_ && !resize_ack_pending_) {
repaint_start_time_ = TimeTicks::Now();
repaint_ack_pending_ = true;
TRACE_EVENT_ASYNC_BEGIN0(
@@ -840,7 +839,7 @@ void RenderWidgetHostImpl::WaitForSurface() {
bool RenderWidgetHostImpl::ScheduleComposite() {
if (is_hidden_ || current_size_.IsEmpty() || repaint_ack_pending_ ||
- resize_ack_pending_ || view_being_painted_) {
+ resize_ack_pending_) {
return false;
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698