Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
sampler_library_gles.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_RENDERER_BACKEND_GLES_SAMPLER_LIBRARY_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_LIBRARY_GLES_H_
7
11
12namespace impeller {
13
14class SamplerLibraryGLES final : public SamplerLibrary {
15 public:
16 explicit SamplerLibraryGLES(bool supports_decal_sampler_address_mode);
17 // |SamplerLibrary|
19
20 private:
21 friend class ContextGLES;
22
23 SamplerMap samplers_;
24
26
27 // |SamplerLibrary|
28 const std::unique_ptr<const Sampler>& GetSampler(
29 SamplerDescriptor descriptor) override;
30
31 bool supports_decal_sampler_address_mode_ = false;
32
34
35 SamplerLibraryGLES& operator=(const SamplerLibraryGLES&) = delete;
36};
37
38} // namespace impeller
39
40#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SAMPLER_LIBRARY_GLES_H_
const std::unique_ptr< const Sampler > & GetSampler(SamplerDescriptor descriptor) override
Retrieve a backend specific sampler object for the given sampler descriptor.
std::unordered_map< SamplerDescriptor, std::unique_ptr< const Sampler >, ComparableHash< SamplerDescriptor >, ComparableEqual< SamplerDescriptor > > SamplerMap
Definition sampler.h:35