Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
multi_arch_shader_archive_writer.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_WRITER_H_
6#define FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_WRITER_H_
7
8#include <map>
9
10#include "flutter/fml/macros.h"
11#include "flutter/fml/mapping.h"
13
14namespace impeller {
15
17 public:
19
21
22 [[nodiscard]] bool RegisterShaderArchive(
24 std::shared_ptr<const fml::Mapping> mapping);
25
26 std::shared_ptr<fml::Mapping> CreateMapping() const;
27
28 private:
29 std::map<ArchiveRenderingBackend, std::shared_ptr<const fml::Mapping>>
30 archives_;
31
33
35 delete;
36};
37
38} // namespace impeller
39
40#endif // FLUTTER_IMPELLER_SHADER_ARCHIVE_MULTI_ARCH_SHADER_ARCHIVE_WRITER_H_
bool RegisterShaderArchive(ArchiveRenderingBackend backend, std::shared_ptr< const fml::Mapping > mapping)
std::shared_ptr< fml::Mapping > CreateMapping() const