Commit 39695d7b authored by piman@chromium.org's avatar piman@chromium.org

Remove RWHI::view_being_painted_

It's never set.

BUG=None

Review URL: https://codereview.chromium.org/286233002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270946 0039d316-1c4b-4281-b951-d872f2087c98
parent eaae49d7
......@@ -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;
}
......
......@@ -810,9 +810,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// Flag to detect recursive calls to GetBackingStore().
bool in_get_backing_store_;
// Set when we call DidPaintRect/DidScrollRect on the view.
bool view_being_painted_;
// Used for UMA histogram logging to measure the time for a repaint view
// operation to finish.
base::TimeTicks repaint_start_time_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment