Flutter Impeller
sampler.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_CORE_SAMPLER_H_
6
#define FLUTTER_IMPELLER_CORE_SAMPLER_H_
7
8
#include <unordered_map>
9
10
#include "
impeller/base/comparable.h
"
11
#include "
impeller/core/sampler_descriptor.h
"
12
13
namespace
impeller
{
14
15
class
Sampler
{
16
public
:
17
virtual
~Sampler
();
18
19
virtual
bool
IsValid
()
const
= 0;
20
21
const
SamplerDescriptor
&
GetDescriptor
()
const
;
22
23
protected
:
24
SamplerDescriptor
desc_
;
25
26
explicit
Sampler
(
SamplerDescriptor
desc);
27
28
private
:
29
Sampler
(
const
Sampler
&) =
delete
;
30
31
Sampler
& operator=(
const
Sampler
&) =
delete
;
32
};
33
34
using
SamplerMap
= std::unordered_map<
SamplerDescriptor
,
35
std::shared_ptr<const Sampler>,
36
ComparableHash<SamplerDescriptor>
,
37
ComparableEqual<SamplerDescriptor>
>;
38
39
}
// namespace impeller
40
41
#endif // FLUTTER_IMPELLER_CORE_SAMPLER_H_
impeller::Sampler::Sampler
Sampler(SamplerDescriptor desc)
Definition:
sampler.cc:9
impeller::ComparableHash
Definition:
comparable.h:39
impeller::Sampler::~Sampler
virtual ~Sampler()
impeller::SamplerDescriptor
Definition:
sampler_descriptor.h:15
impeller::Sampler
Definition:
sampler.h:15
impeller::SamplerMap
std::unordered_map< SamplerDescriptor, std::shared_ptr< const Sampler >, ComparableHash< SamplerDescriptor >, ComparableEqual< SamplerDescriptor > > SamplerMap
Definition:
sampler.h:37
impeller::ComparableEqual
Definition:
comparable.h:48
sampler_descriptor.h
comparable.h
impeller::Sampler::IsValid
virtual bool IsValid() const =0
impeller::Sampler::GetDescriptor
const SamplerDescriptor & GetDescriptor() const
Definition:
sampler.cc:13
impeller
Definition:
aiks_context.cc:10
impeller::Sampler::desc_
SamplerDescriptor desc_
Definition:
sampler.h:24
impeller
core
sampler.h
Generated by
1.8.17