Skip to content

Commit

Permalink
[Ozone/Wayland]Comma operator causes version skew to crash
Browse files Browse the repository at this point in the history
This should be a >= instead.

(cherry picked from commit 4989947)

Change-Id: I14814657607a3ab80ef529b4eec40e9b63ea67e6
Bug: 1325042
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3646330
Auto-Submit: Kramer Ge <fangzhoug@chromium.org>
Commit-Queue: Peter McNeeley <petermcneeley@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Commit-Queue: Kramer Ge <fangzhoug@chromium.org>
Reviewed-by: Peter McNeeley <petermcneeley@chromium.org>
Reviewed-by: Maksim Sisov <msisov@igalia.com>
Cr-Original-Commit-Position: refs/heads/main@{#1003185}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3651106
Cr-Commit-Position: refs/branch-heads/5060@{#52}
Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
  • Loading branch information
fangzhoug authored and Chromium LUCI CQ committed May 17, 2022
1 parent 4d9741b commit 25d3f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ozone/platform/wayland/host/wayland_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void WaylandSurface::ApplyPendingState() {

if (pending_state_.background_color != state_.background_color) {
DCHECK(GetAugmentedSurface());
if (augmented_surface_get_version(GetAugmentedSurface()),
if (augmented_surface_get_version(GetAugmentedSurface()) >=
static_cast<uint32_t>(
AUGMENTED_SURFACE_SET_BACKGROUND_COLOR_SINCE_VERSION)) {
wl_array color_data;
Expand Down

0 comments on commit 25d3f6e

Please sign in to comment.