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 
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).
23  public:
25 
27 
28  protected:
29  // |SolidRRectLikeBlurContents|
30  bool SetPassInfo(RenderPass& pass,
31  const ContentContext& renderer,
32  PassContext& pass_context) const override;
33 
34  private:
36 
37  SolidRRectBlurContents& operator=(const SolidRRectBlurContents&) = delete;
38 };
39 
40 } // namespace impeller
41 
42 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RRECT_BLUR_CONTENTS_H_
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:30
Draws a fast solid color blur of an rounded rectangle. Only supports RRects with fully symmetrical ra...
bool SetPassInfo(RenderPass &pass, const ContentContext &renderer, PassContext &pass_context) const override
A base class for SolidRRectBlurContents and SolidRSuperellipseBlurContents.