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

Surface Synchronization: Detect invariants violations in LayerTreeHost

Currently some invariants violation checks are in LayerTreeHost for mac
but not for other platforms. This CL enables the check on other platforms.

Bug: 672962
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Iade0eee8322f9126a5ee7409b2e79aa00593b2d1
Reviewed-on: https://chromium-review.googlesource.com/1217598Reviewed-by: default avatarccameron <ccameron@chromium.org>
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590175}
parent f1b78d15
......@@ -1127,13 +1127,9 @@ void LayerTreeHost::SetViewportSizeAndScale(
if (changed) {
SetPropertyTreesNeedRebuild();
SetNeedsCommit();
#if defined(OS_MACOSX)
// TODO(ccameron): This check is not valid on Aura or Mus yet, but should
// be.
CHECK(!has_pushed_local_surface_id_from_parent_ ||
new_local_surface_id_request_ ||
!local_surface_id_from_parent_.is_valid());
#endif
}
}
......
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