Flutter Impeller
blob_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
#pragma once
6
7
#include <memory>
8
#include <string>
9
#include <vector>
10
11
#include "flutter/fml/macros.h"
12
#include "flutter/fml/mapping.h"
13
#include "
impeller/blobcat/blob_types.h
"
14
15
namespace
impeller
{
16
17
class
BlobWriter
{
18
public
:
19
BlobWriter
();
20
21
~BlobWriter
();
22
23
[[nodiscard]]
bool
AddBlobAtPath
(
const
std::string& path);
24
25
[[nodiscard]]
bool
AddBlob
(
BlobShaderType
type,
26
std::string name,
27
std::shared_ptr<fml::Mapping> mapping);
28
29
std::shared_ptr<fml::Mapping>
CreateMapping
()
const
;
30
31
private
:
32
struct
BlobDescription {
33
BlobShaderType
type;
34
std::string name;
35
std::shared_ptr<fml::Mapping> mapping;
36
};
37
38
std::vector<BlobDescription> blob_descriptions_;
39
40
FML_DISALLOW_COPY_AND_ASSIGN(
BlobWriter
);
41
};
42
43
}
// namespace impeller
impeller::BlobWriter::CreateMapping
std::shared_ptr< fml::Mapping > CreateMapping() const
Definition:
blob_writer.cc:98
impeller::BlobWriter
Definition:
blob_writer.h:17
impeller::BlobWriter::AddBlob
bool AddBlob(BlobShaderType type, std::string name, std::shared_ptr< fml::Mapping > mapping)
Definition:
blob_writer.cc:74
impeller::BlobWriter::AddBlobAtPath
bool AddBlobAtPath(const std::string &path)
Definition:
blob_writer.cc:31
impeller::BlobWriter::BlobWriter
BlobWriter()
impeller::BlobShaderType
BlobShaderType
Definition:
blob_types.h:9
impeller::BlobWriter::~BlobWriter
~BlobWriter()
blob_types.h
impeller
Definition:
aiks_context.cc:10
impeller
blobcat
blob_writer.h
Generated by
1.8.17