Flutter Impeller
render_pass_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 #pragma once
6 
7 #include <memory>
8 
9 #include "flutter/fml/macros.h"
12 
13 namespace impeller {
14 
15 class RenderPassGLES final
16  : public RenderPass,
17  public std::enable_shared_from_this<RenderPassGLES> {
18  public:
19  // |RenderPass|
20  ~RenderPassGLES() override;
21 
22  private:
23  friend class CommandBufferGLES;
24 
25  ReactorGLES::Ref reactor_;
26  std::string label_;
27  bool is_valid_ = false;
28 
29  RenderPassGLES(std::weak_ptr<const Context> context,
30  const RenderTarget& target,
31  ReactorGLES::Ref reactor);
32 
33  // |RenderPass|
34  bool IsValid() const override;
35 
36  // |RenderPass|
37  void OnSetLabel(std::string label) override;
38 
39  // |RenderPass|
40  bool OnEncodeCommands(const Context& context) const override;
41 
42  FML_DISALLOW_COPY_AND_ASSIGN(RenderPassGLES);
43 };
44 
45 } // namespace impeller
impeller::RenderPassGLES
Definition: render_pass_gles.h:15
impeller::RenderPassGLES::~RenderPassGLES
~RenderPassGLES() override
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition: reactor_gles.h:31
render_pass.h
impeller::CommandBufferGLES
Definition: command_buffer_gles.h:14
impeller::RenderTarget
Definition: render_target.h:48
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:27
reactor_gles.h
impeller::Context
To do anything rendering related with Impeller, you need a context.
Definition: context.h:47
impeller
Definition: aiks_context.cc:10