| Flutter Impeller |

command_buffer_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_COMMAND_BUFFER_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_
7
8 #include "impeller/renderer/backend/gles/reactor_gles.h"
9 #include "impeller/renderer/command_buffer.h"
10 #include "impeller/renderer/render_target.h"
11
12 namespace impeller {
13
14 class CommandBufferGLES final : public CommandBuffer {
15 public:
16 // |CommandBuffer|
17 ~CommandBufferGLES() override;
18
19 private:
20 friend class ContextGLES;
21
22 std::shared_ptr<ReactorGLES> reactor_;
23 bool is_valid_ = false;
24
25 CommandBufferGLES(std::weak_ptr<const Context> context,
26 std::shared_ptr<ReactorGLES> reactor);
27
28 // |CommandBuffer|
29 void SetLabel(std::string_view label) const override;
30
31 // |CommandBuffer|
32 bool IsValid() const override;
33
34 // |CommandBuffer|
35 bool OnSubmitCommands(CompletionCallback callback) override;
36
37 // |CommandBuffer|
38 void OnWaitUntilCompleted() override;
39
40 // |CommandBuffer|
41 void OnWaitUntilScheduled() override;
42
43 // |CommandBuffer|
44 std::shared_ptr<RenderPass> OnCreateRenderPass(RenderTarget target) override;
45
46 // |CommandBuffer|
47 std::shared_ptr<BlitPass> OnCreateBlitPass() override;
48
49 // |CommandBuffer|
50 std::shared_ptr<ComputePass> OnCreateComputePass() override;
51
52 CommandBufferGLES(const CommandBufferGLES&) = delete;
53
54 CommandBufferGLES& operator=(const CommandBufferGLES&) = delete;
55 };
56
57 } // namespace impeller
58
59 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_
impeller::CommandBufferGLES
Definition: command_buffer_gles.h:14
impeller::CommandBufferGLES::~CommandBufferGLES
~CommandBufferGLES() override
impeller::CommandBuffer
A collection of encoded commands to be submitted to the GPU for execution. A command buffer is obtain...
Definition: command_buffer.h:45
impeller::CommandBuffer::CompletionCallback
std::function< void(Status)> CompletionCallback
Definition: command_buffer.h:55
impeller::ContextGLES
Definition: context_gles.h:25
impeller::RenderTarget
Definition: render_target.h:38
command_buffer.h
impeller
Definition: allocation.cc:12
reactor_gles.h
render_target.h