| Flutter Impeller |

pipeline_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_PIPELINE_LIBRARY_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_LIBRARY_GLES_H_
7
8 #include "impeller/renderer/backend/gles/reactor_gles.h"
9 #include "impeller/renderer/pipeline_library.h"
10
11 namespace impeller {
12
13 class ContextGLES;
14
15 class PipelineLibraryGLES final : public PipelineLibrary {
16 public:
17 // |PipelineLibrary|
18 ~PipelineLibraryGLES() override;
19
20 private:
21 friend ContextGLES;
22
23 ReactorGLES::Ref reactor_;
24 PipelineMap pipelines_;
25
26 explicit PipelineLibraryGLES(ReactorGLES::Ref reactor);
27
28 // |PipelineLibrary|
29 bool IsValid() const override;
30
31 // |PipelineLibrary|
32 PipelineFuture<PipelineDescriptor> GetPipeline(PipelineDescriptor descriptor,
33 bool async) override;
34
35 // |PipelineLibrary|
36 PipelineFuture<ComputePipelineDescriptor> GetPipeline(
37 ComputePipelineDescriptor descriptor,
38 bool async) override;
39
40 // |PipelineLibrary|
41 void RemovePipelinesWithEntryPoint(
42 std::shared_ptr<const ShaderFunction> function) override;
43
44 PipelineLibraryGLES(const PipelineLibraryGLES&) = delete;
45
46 PipelineLibraryGLES& operator=(const PipelineLibraryGLES&) = delete;
47 };
48
49 } // namespace impeller
50
51 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_LIBRARY_GLES_H_
impeller::PipelineDescriptor
Definition: pipeline_descriptor.h:24
impeller::ComputePipelineDescriptor
Definition: compute_pipeline_descriptor.h:20
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition: reactor_gles.h:86
impeller::ContextGLES
Definition: context_gles.h:22
impeller::PipelineFuture
Definition: pipeline.h:25
impeller::PipelineLibrary
Definition: pipeline_library.h:29
impeller::PipelineMap
std::unordered_map< PipelineDescriptor, PipelineFuture< PipelineDescriptor >, ComparableHash< PipelineDescriptor >, ComparableEqual< PipelineDescriptor > > PipelineMap
Definition: pipeline_library.h:21
pipeline_library.h
reactor_gles.h
impeller::PipelineLibraryGLES::~PipelineLibraryGLES
~PipelineLibraryGLES() override
impeller
Definition: aiks_blend_unittests.cc:18
impeller::PipelineLibraryGLES
Definition: pipeline_library_gles.h:15