Don't warn for Async texture uploads on Fuchsia (flutter/engine#7691)

This commit is contained in:
Kaushik Iska
2019-02-04 17:04:08 -08:00
committed by GitHub
parent 5ae6ae6c16
commit da09acaad9
2 changed files with 4 additions and 0 deletions

View File

@@ -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
}
}

View File

@@ -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;
}