diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/software_surface_producer.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/software_surface_producer.cc index 370307c227..4246ed5653 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/software_surface_producer.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/software_surface_producer.cc @@ -55,13 +55,13 @@ SoftwareSurfaceProducer::SoftwareSurfaceProducer( sysmem_allocator_.NewRequest().TakeChannel().release()); sysmem_allocator_->SetDebugClientInfo(GetCurrentProcessName(), GetCurrentProcessId()); - FML_DCHECK(status != ZX_OK); + FML_DCHECK(status == ZX_OK); if (!scenic_session_) { status = fdio_service_connect( "/svc/fuchsia.ui.composition.Allocator", flatland_allocator_.NewRequest().TakeChannel().release()); - FML_DCHECK(status != ZX_OK); + FML_DCHECK(status == ZX_OK); } valid_ = true; diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc index ae83ff974a..ce6fa2e03b 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_pool.cc @@ -42,13 +42,13 @@ VulkanSurfacePool::VulkanSurfacePool(vulkan::VulkanProvider& vulkan_provider, sysmem_allocator_.NewRequest().TakeChannel().release()); sysmem_allocator_->SetDebugClientInfo(GetCurrentProcessName(), GetCurrentProcessId()); - FML_DCHECK(status != ZX_OK); + FML_DCHECK(status == ZX_OK); if (!scenic_session_) { status = fdio_service_connect( "/svc/fuchsia.ui.composition.Allocator", flatland_allocator_.NewRequest().TakeChannel().release()); - FML_DCHECK(status != ZX_OK); + FML_DCHECK(status == ZX_OK); } }