| Flutter Impeller |

framebuffer_blend_contents.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 <functional>
8 #include <memory>
9 #include <vector>
10
11 #include "flutter/fml/macros.h"
12 #include "flutter/impeller/core/texture.h"
13 #include "impeller/entity/contents/color_source_contents.h"
14 #include "impeller/entity/entity.h"
15
16 namespace impeller {
17
18 class FramebufferBlendContents final : public ColorSourceContents {
19 public:
20 FramebufferBlendContents();
21
22 ~FramebufferBlendContents() override;
23
24 void SetBlendMode(BlendMode blend_mode);
25
26 void SetChildContents(std::shared_ptr<Contents> child_contents);
27
28 private:
29 // |Contents|
30 std::optional<Rect> GetCoverage(const Entity& entity) const override;
31
32 // |Contents|
33 bool Render(const ContentContext& renderer,
34 const Entity& entity,
35 RenderPass& pass) const override;
36
37 BlendMode blend_mode_;
38 std::shared_ptr<Contents> child_contents_;
39
40 FML_DISALLOW_COPY_AND_ASSIGN(FramebufferBlendContents);
41 };
42
43 } // namespace impeller
impeller::BlendMode
BlendMode
Definition: color.h:57
impeller::FramebufferBlendContents
Definition: framebuffer_blend_contents.h:18
entity.h
impeller::FramebufferBlendContents::~FramebufferBlendContents
~FramebufferBlendContents() override
impeller::Entity
Definition: entity.h:21
color_source_contents.h
impeller::FramebufferBlendContents::FramebufferBlendContents
FramebufferBlendContents()
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:27
impeller::FramebufferBlendContents::SetChildContents
void SetChildContents(std::shared_ptr< Contents > child_contents)
Definition: framebuffer_blend_contents.cc:21
impeller::FramebufferBlendContents::SetBlendMode
void SetBlendMode(BlendMode blend_mode)
Definition: framebuffer_blend_contents.cc:17
texture.h
impeller::ColorSourceContents
Definition: color_source_contents.h:33
impeller
Definition: aiks_context.cc:10
impeller::ContentContext
Definition: content_context.h:344