blob: 06792a217652ed2bdca771349ad8061da526a057 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/lib/escher/resources/resource_manager.h"
#include "src/ui/lib/escher/escher.h"
namespace escher {
// TODO: DemoHarness::SwapchainImageOwner is currently instantiated before
// an Escher exists. Fix this, then assert that Escher is non-null here.
ResourceManager::ResourceManager(EscherWeakPtr weak_escher)
: escher_(std::move(weak_escher)),
vulkan_context_(escher_ ? escher_->vulkan_context() : VulkanContext()) {}
const VulkanDeviceQueues::Caps& ResourceManager::caps() const { return escher_->device()->caps(); }
} // namespace escher