// Copyright 2013 The Flutter 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 "impeller/renderer/pipeline_library.h" namespace impeller { PipelineLibrary::PipelineLibrary() = default; PipelineLibrary::~PipelineLibrary() = default; PipelineFuture PipelineLibrary::GetPipeline( std::optional descriptor, bool async) { if (descriptor.has_value()) { return GetPipeline(descriptor.value(), async); } auto promise = std::make_shared< std::promise>>>(); promise->set_value(nullptr); return {descriptor, promise->get_future()}; } PipelineFuture PipelineLibrary::GetPipeline( std::optional descriptor, bool async) { if (descriptor.has_value()) { return GetPipeline(descriptor.value(), async); } auto promise = std::make_shared< std::promise>>>(); promise->set_value(nullptr); return {descriptor, promise->get_future()}; } } // namespace impeller