| 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 #pragma once
6
7 #include "flutter/fml/macros.h"
8 #include "impeller/core/sampler_descriptor.h"
9
10 namespace impeller {
11
12 class Sampler {
13 public:
14 virtual ~Sampler();
15
16 virtual bool IsValid() const = 0;
17
18 const SamplerDescriptor& GetDescriptor() const;
19
20 protected:
21 SamplerDescriptor desc_;
22
23 explicit Sampler(SamplerDescriptor desc);
24
25 private:
26 FML_DISALLOW_COPY_AND_ASSIGN(Sampler);
27 };
28
29 } // namespace impeller
impeller::Sampler::Sampler
Sampler(SamplerDescriptor desc)
Definition: sampler.cc:9
impeller::Sampler::~Sampler
virtual ~Sampler()
impeller::SamplerDescriptor
Definition: sampler_descriptor.h:18
impeller::Sampler
Definition: sampler.h:12
sampler_descriptor.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:21