Commit f1a9e88d authored by Fady Samuel's avatar Fady Samuel Committed by Commit Bot

Surface Synchronization: Only defer commits if frame exists

Right now, with surface sync off on Android, we will defer commits
any time there's a size change, even if we've evicted the current
surface.

Change-Id: I7e1ae394e20eef2a46bca5ae9a8fc8a4cdf35e0b
Bug: 848292, 672962
Reviewed-on: https://chromium-review.googlesource.com/1121098Reviewed-by: default avatarSaman Sami <samans@chromium.org>
Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575405}
parent 1008e3b4
......@@ -320,7 +320,7 @@ void DelegatedFrameHostAndroid::PixelSizeWillChange(
expected_pixel_size_ = pixel_size;
if (registered_parent_compositor_) {
if (content_layer_->bounds() != expected_pixel_size_) {
if (HasSavedFrame() && content_layer_->bounds() != expected_pixel_size_) {
compositor_pending_resize_lock_ =
registered_parent_compositor_->GetCompositorLock(
this, base::TimeDelta::FromSeconds(kResizeTimeoutSeconds));
......
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