From da09acaad97c4594c0f61e1b3f3e82c722832d85 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Mon, 4 Feb 2019 17:04:08 -0800 Subject: [PATCH] Don't warn for Async texture uploads on Fuchsia (flutter/engine#7691) --- engine/src/flutter/shell/common/io_manager.cc | 2 ++ engine/src/flutter/shell/common/platform_view.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/engine/src/flutter/shell/common/io_manager.cc b/engine/src/flutter/shell/common/io_manager.cc index b5393831cd..996b14ed3d 100644 --- a/engine/src/flutter/shell/common/io_manager.cc +++ b/engine/src/flutter/shell/common/io_manager.cc @@ -53,9 +53,11 @@ IOManager::IOManager(sk_sp resource_context, fml::TimeDelta::FromMilliseconds(250))), weak_factory_(this) { if (!resource_context_) { +#ifndef OS_FUCHSIA FML_DLOG(WARNING) << "The IO manager was initialized without a resource " "context. Async texture uploads will be disabled. " "Expect performance degradation."; +#endif // OS_FUCHSIA } } diff --git a/engine/src/flutter/shell/common/platform_view.cc b/engine/src/flutter/shell/common/platform_view.cc index 4a4e7df074..7c7c1dc258 100644 --- a/engine/src/flutter/shell/common/platform_view.cc +++ b/engine/src/flutter/shell/common/platform_view.cc @@ -68,8 +68,10 @@ void PlatformView::NotifyDestroyed() { } sk_sp PlatformView::CreateResourceContext() const { +#ifndef OS_FUCHSIA FML_DLOG(WARNING) << "This platform does not setup the resource " "context on the IO thread for async texture uploads."; +#endif // OS_FUCHSIA return nullptr; }