Attention is currently required from: Eriko Kurimoto.
Eriko Kurimoto uploaded patch set #3 to this change.
ozone/wayland: Reset all_bug_fixes_sent_callback on channel destroyed
This CL reset `all_bug_fixes_sent_callback_` when OnChennelDestroyed is
called.
This fixes the flaky crash on compositor_unittests and
TabCapturePerformanceTest.
Bug: 1482740
Change-Id: I32b9c0a56f9ffdd515d5c28106d49c5a43ffd588
---
M ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc
1 file changed, 1 insertion(+), 0 deletions(-)
To view, visit change 4881242. To unsubscribe, or for help writing mail filters, visit settings.
Attention is currently required from: Mitsuru Oshima.
Patch set 3:Commit-Queue +1
2 comments:
Patchset:
will it be difficult to pass callback in test?
I think inserting fake callback here is not correct since TestGpuServiceHolder binds new interface as `buffer_manager_gpu_remote` and it should again initialize it.
File ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc:
Patch Set #1, Line 159: << "see this message except for testing.";
is it difficult to fix test?
Actually, resetting callback on channel destruction is enough. Updated the cl.
To view, visit change 4881242. To unsubscribe, or for help writing mail filters, visit settings.
Patch set 3:Commit-Queue +2
Chromium LUCI CQ submitted this change.
ozone/wayland: Reset all_bug_fixes_sent_callback on channel destroyed
This CL reset `all_bug_fixes_sent_callback_` when OnChennelDestroyed is
called.
This fixes the flaky crash on compositor_unittests and
TabCapturePerformanceTest.
Bug: 1482740
Change-Id: I32b9c0a56f9ffdd515d5c28106d49c5a43ffd588
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4881242
Reviewed-by: Mitsuru Oshima <osh...@chromium.org>
Commit-Queue: Eriko Kurimoto <elk...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1201920}
---
M ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc b/ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc
index 6f42199..2ac3e89 100644
--- a/ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc
+++ b/ui/ozone/platform/wayland/host/wayland_buffer_manager_host.cc
@@ -114,6 +114,7 @@
for (auto* window : connection_->window_manager()->GetAllWindows())
window->OnChannelDestroyed();
+ all_bug_fixes_sent_callback_.Reset();
buffer_manager_gpu_associated_.reset();
receiver_.reset();
}
To view, visit change 4881242. To unsubscribe, or for help writing mail filters, visit settings.