Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
renderer
backend
gles
pipeline_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_GLES_H_
6
#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_GLES_H_
7
8
#include "flutter/fml/macros.h"
9
#include "
impeller/base/backend_cast.h
"
10
#include "
impeller/renderer/backend/gles/buffer_bindings_gles.h
"
11
#include "
impeller/renderer/backend/gles/handle_gles.h
"
12
#include "
impeller/renderer/backend/gles/reactor_gles.h
"
13
#include "
impeller/renderer/pipeline.h
"
14
15
namespace
impeller
{
16
17
class
PipelineLibraryGLES;
18
19
class
PipelineGLES
final
20
:
public
Pipeline
<PipelineDescriptor>,
21
public
BackendCast
<PipelineGLES, Pipeline<PipelineDescriptor>> {
22
public
:
23
// |Pipeline|
24
~PipelineGLES
()
override
;
25
26
const
HandleGLES
&
GetProgramHandle
()
const
;
27
28
[[nodiscard]]
bool
BindProgram
()
const
;
29
30
[[nodiscard]]
bool
UnbindProgram
()
const
;
31
32
BufferBindingsGLES
*
GetBufferBindings
()
const
;
33
34
[[nodiscard]]
bool
BuildVertexDescriptor
(
const
ProcTableGLES
& gl,
35
GLuint program);
36
37
private
:
38
friend
PipelineLibraryGLES
;
39
40
ReactorGLES::Ref
reactor_;
41
HandleGLES
handle_;
42
std::unique_ptr<BufferBindingsGLES> buffer_bindings_;
43
bool
is_valid_ =
false
;
44
45
// |Pipeline|
46
bool
IsValid
()
const override
;
47
48
PipelineGLES
(
ReactorGLES::Ref
reactor,
49
std::weak_ptr<PipelineLibrary> library,
50
const
PipelineDescriptor
& desc);
51
52
PipelineGLES
(
const
PipelineGLES
&) =
delete
;
53
54
PipelineGLES
& operator=(
const
PipelineGLES
&) =
delete
;
55
};
56
57
}
// namespace impeller
58
59
#endif
// FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_PIPELINE_GLES_H_
backend_cast.h
buffer_bindings_gles.h
impeller::BackendCast
Definition
backend_cast.h:11
impeller::BufferBindingsGLES
Sets up stage bindings for single draw call in the OpenGLES backend.
Definition
buffer_bindings_gles.h:22
impeller::PipelineDescriptor
Definition
pipeline_descriptor.h:24
impeller::PipelineGLES
Definition
pipeline_gles.h:21
impeller::PipelineGLES::~PipelineGLES
~PipelineGLES() override
Definition
pipeline_gles.cc:23
impeller::PipelineGLES::GetProgramHandle
const HandleGLES & GetProgramHandle() const
Definition
pipeline_gles.cc:34
impeller::PipelineGLES::GetBufferBindings
BufferBindingsGLES * GetBufferBindings() const
Definition
pipeline_gles.cc:38
impeller::PipelineGLES::UnbindProgram
bool UnbindProgram() const
Definition
pipeline_gles.cc:72
impeller::PipelineGLES::BindProgram
bool BindProgram() const
Definition
pipeline_gles.cc:60
impeller::PipelineGLES::BuildVertexDescriptor
bool BuildVertexDescriptor(const ProcTableGLES &gl, GLuint program)
Definition
pipeline_gles.cc:42
impeller::PipelineGLES::IsValid
bool IsValid() const override
Definition
pipeline_gles.cc:30
impeller::PipelineLibraryGLES
Definition
pipeline_library_gles.h:16
impeller::Pipeline
Describes the fixed function and programmable aspects of rendering and compute operations performed b...
Definition
pipeline.h:49
impeller::ProcTableGLES
Definition
proc_table_gles.h:229
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition
reactor_gles.h:87
handle_gles.h
pipeline.h
impeller
Definition
texture.h:18
reactor_gles.h
impeller::HandleGLES
Definition
handle_gles.h:35
Generated on Fri Apr 26 2024 06:14:11 for Flutter Engine by
1.9.8