Index: content/browser/renderer_host/delegated_frame_host.cc |
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc |
index 1159f8bcc21eba6260b0f8163c6835c827362467..5f0de3e608155d6412f45125b99cce0f6eadef7f 100644 |
--- a/content/browser/renderer_host/delegated_frame_host.cc |
+++ b/content/browser/renderer_host/delegated_frame_host.cc |
@@ -92,13 +92,11 @@ void DelegatedFrameHost::MaybeCreateResizeLock() { |
can_lock_compositor_ == NO_PENDING_RENDERER_FRAME || |
can_lock_compositor_ == NO_PENDING_COMMIT; |
- if (can_lock_compositor_ == YES_CAN_LOCK) |
- can_lock_compositor_ = YES_DID_LOCK; |
- |
resize_lock_ = client_->DelegatedFrameHostCreateResizeLock(); |
if (!defer_compositor_lock) { |
bool locked = resize_lock_->Lock(); |
DCHECK(locked); |
+ can_lock_compositor_ = YES_DID_LOCK; |
} |
} |