Don't warn for Async texture uploads on Fuchsia (flutter/engine#7691)
This commit is contained in:
@@ -53,9 +53,11 @@ IOManager::IOManager(sk_sp<GrContext> 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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,8 +68,10 @@ void PlatformView::NotifyDestroyed() {
|
||||
}
|
||||
|
||||
sk_sp<GrContext> 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user