| Flutter Impeller |

solid_rrect_blur_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 #ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_
6 #define FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_
7
8 #include <functional>
9 #include <memory>
10 #include <vector>
11
12 #include "impeller/entity/contents/contents.h"
13 #include "impeller/entity/contents/filters/filter_contents.h"
14 #include "impeller/entity/contents/solid_rrect_like_blur_contents.h"
15 #include "impeller/geometry/color.h"
16
17 namespace impeller {
18
19 /// @brief Draws a fast solid color blur of an rounded rectangle. Only supports
20 /// RRects with fully symmetrical radii. Also produces correct results for
21 /// rectangles (corner_radius=0) and circles (corner_radius=width/2=height/2).
22 class SolidRRectBlurContents final : public SolidRRectLikeBlurContents {
23 public:
24 SolidRRectBlurContents();
25
26 ~SolidRRectBlurContents() override;
27
28 protected:
29 // |SolidRRectLikeBlurContents|
30 bool SetPassInfo(RenderPass& pass,
31 const ContentContext& renderer,
32 PassContext& pass_context) const override;
33
34 private:
35 SolidRRectBlurContents(const SolidRRectBlurContents&) = delete;
36
37 SolidRRectBlurContents& operator=(const SolidRRectBlurContents&) = delete;
38 };
39
40 } // namespace impeller
41
42 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_
impeller::ContentContext
Definition: content_context.h:138
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:30
impeller::SolidRRectBlurContents
Draws a fast solid color blur of an rounded rectangle. Only supports RRects with fully symmetrical ra...
Definition: solid_rrect_blur_contents.h:22
impeller::SolidRRectBlurContents::SolidRRectBlurContents
SolidRRectBlurContents()
impeller::SolidRRectBlurContents::~SolidRRectBlurContents
~SolidRRectBlurContents() override
impeller::SolidRRectBlurContents::SetPassInfo
bool SetPassInfo(RenderPass &pass, const ContentContext &renderer, PassContext &pass_context) const override
Definition: solid_rrect_blur_contents.cc:17
impeller::SolidRRectLikeBlurContents
A base class for SolidRRectBlurContents and SolidRSuperellipseBlurContents.
Definition: solid_rrect_like_blur_contents.h:20
color.h
contents.h
filter_contents.h
impeller
Definition: allocation.cc:12
solid_rrect_like_blur_contents.h
impeller::SolidRRectLikeBlurContents::PassContext
Definition: solid_rrect_like_blur_contents.h:45