Flutter Engine
The Flutter Engine
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
12
13namespace impeller {
14
15class Sampler {
16 public:
17 virtual ~Sampler();
18
19 const SamplerDescriptor& GetDescriptor() const;
20
21 protected:
23
25
26 private:
27 Sampler(const Sampler&) = delete;
28
29 Sampler& operator=(const Sampler&) = delete;
30};
31
32using SamplerMap = std::unordered_map<SamplerDescriptor,
33 std::unique_ptr<const Sampler>,
36
37} // namespace impeller
38
39#endif // FLUTTER_IMPELLER_CORE_SAMPLER_H_
Sampler(SamplerDescriptor desc)
Definition: sampler.cc:9
virtual ~Sampler()
const SamplerDescriptor & GetDescriptor() const
Definition: sampler.cc:13
SamplerDescriptor desc_
Definition: sampler.h:22
std::unordered_map< SamplerDescriptor, std::unique_ptr< const Sampler >, ComparableHash< SamplerDescriptor >, ComparableEqual< SamplerDescriptor > > SamplerMap
Definition: sampler.h:35