| 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 "flutter/fml/macros.h"
9 #include "impeller/renderer/backend/gles/reactor_gles.h"
10 #include "impeller/renderer/pipeline_library.h"
11
12 namespace impeller {
13
14 class ContextGLES;
15
16 class PipelineLibraryGLES final : public PipelineLibrary {
17 public:
18 // |PipelineLibrary|
19 ~PipelineLibraryGLES() override;
20
21 private:
22 friend ContextGLES;
23
24 ReactorGLES::Ref reactor_;
25 PipelineMap pipelines_;
26
27 explicit PipelineLibraryGLES(ReactorGLES::Ref reactor);
28
29 // |PipelineLibrary|
30 bool IsValid() const override;
31
32 // |PipelineLibrary|
33 PipelineFuture<PipelineDescriptor> GetPipeline(
34 PipelineDescriptor descriptor) override;
35
36 // |PipelineLibrary|
37 PipelineFuture<ComputePipelineDescriptor> GetPipeline(
38 ComputePipelineDescriptor descriptor) 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:29
impeller::ComputePipelineDescriptor
Definition: compute_pipeline_descriptor.h:30
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition: reactor_gles.h:87
impeller::ContextGLES
Definition: context_gles.h:24
impeller::PipelineFuture
Definition: pipeline.h:24
impeller::PipelineLibrary
Definition: pipeline_library.h:30
impeller::PipelineMap
std::unordered_map< PipelineDescriptor, PipelineFuture< PipelineDescriptor >, ComparableHash< PipelineDescriptor >, ComparableEqual< PipelineDescriptor > > PipelineMap
Definition: pipeline_library.h:22
pipeline_library.h
reactor_gles.h
impeller::PipelineLibraryGLES::~PipelineLibraryGLES
~PipelineLibraryGLES() override
impeller
Definition: aiks_context.cc:10
impeller::PipelineLibraryGLES
Definition: pipeline_library_gles.h:16