| 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 "flutter/fml/macros.h"
9 #include "impeller/renderer/backend/gles/reactor_gles.h"
10 #include "impeller/renderer/command_buffer.h"
11 #include "impeller/renderer/render_target.h"
12
13 namespace impeller {
14
15 class CommandBufferGLES final : public CommandBuffer {
16 public:
17 // |CommandBuffer|
18 ~CommandBufferGLES() override;
19
20 private:
21 friend class ContextGLES;
22
23 ReactorGLES::Ref reactor_;
24 bool is_valid_ = false;
25
26 CommandBufferGLES(std::weak_ptr<const Context> context,
27 ReactorGLES::Ref reactor);
28
29 // |CommandBuffer|
30 void SetLabel(const std::string& label) const override;
31
32 // |CommandBuffer|
33 bool IsValid() const override;
34
35 // |CommandBuffer|
36 bool OnSubmitCommands(CompletionCallback callback) override;
37
38 // |CommandBuffer|
39 void OnWaitUntilScheduled() override;
40
41 // |CommandBuffer|
42 std::shared_ptr<RenderPass> OnCreateRenderPass(RenderTarget target) override;
43
44 // |CommandBuffer|
45 std::shared_ptr<BlitPass> OnCreateBlitPass() override;
46
47 // |CommandBuffer|
48 std::shared_ptr<ComputePass> OnCreateComputePass() override;
49
50 CommandBufferGLES(const CommandBufferGLES&) = delete;
51
52 CommandBufferGLES& operator=(const CommandBufferGLES&) = delete;
53 };
54
55 } // namespace impeller
56
57 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition: reactor_gles.h:87
impeller::ContextGLES
Definition: context_gles.h:24
impeller::CommandBuffer::CompletionCallback
std::function< void(Status)> CompletionCallback
Definition: command_buffer.h:55
impeller::CommandBufferGLES
Definition: command_buffer_gles.h:15
impeller::RenderTarget
Definition: render_target.h:49
command_buffer.h
reactor_gles.h
impeller::CommandBufferGLES::~CommandBufferGLES
~CommandBufferGLES() override
render_target.h
impeller
Definition: aiks_context.cc:10
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