Flutter Impeller
solid_rsuperellipse_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_RSUPERELLIPSE_BLUR_CONTENTS_H_
6 #define FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RSUPERELLIPSE_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 superellipse. Only
20 /// supports RSuperellipses with fully symmetrical radii. Also produces correct
21 /// results for rectangles (corner_radius=0) and circles
22 /// (corner_radius=width/2=height/2).
24  public:
26 
28 
29  private:
30  // |SolidRRectLikeBlurContents|
31  bool SetPassInfo(RenderPass& pass,
32  const ContentContext& renderer,
33  PassContext& pass_context) const override;
34 
36  delete;
37 
39  const SolidRSuperellipseBlurContents&) = delete;
40 };
41 
42 } // namespace impeller
43 
44 #endif // FLUTTER_IMPELLER_ENTITY_CONTENTS_SOLID_RSUPERELLIPSE_BLUR_CONTENTS_H_
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:30
A base class for SolidRRectBlurContents and SolidRSuperellipseBlurContents.
Draws a fast solid color blur of an rounded superellipse. Only supports RSuperellipses with fully sym...