Flutter Engine
 
Loading...
Searching...
No Matches
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
11
12namespace impeller {
13
14class CommandBufferGLES final : public CommandBuffer {
15 public:
16 // |CommandBuffer|
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(bool block_on_schedule,
37
38 // |CommandBuffer|
39 void OnWaitUntilCompleted() override;
40
41 // |CommandBuffer|
42 void OnWaitUntilScheduled() override;
43
44 // |CommandBuffer|
45 std::shared_ptr<RenderPass> OnCreateRenderPass(RenderTarget target) override;
46
47 // |CommandBuffer|
48 std::shared_ptr<BlitPass> OnCreateBlitPass() override;
49
50 // |CommandBuffer|
51 std::shared_ptr<ComputePass> OnCreateComputePass() override;
52
53 CommandBufferGLES(const CommandBufferGLES&) = delete;
54
55 CommandBufferGLES& operator=(const CommandBufferGLES&) = delete;
56};
57
58} // namespace impeller
59
60#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_COMMAND_BUFFER_GLES_H_
A collection of encoded commands to be submitted to the GPU for execution. A command buffer is obtain...
std::function< void(Status)> CompletionCallback
uint32_t * target
FlutterDesktopBinaryReply callback