| Flutter Impeller |

canvas.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_DISPLAY_LIST_CANVAS_H_
6 #define FLUTTER_IMPELLER_DISPLAY_LIST_CANVAS_H_
7
8 #include <deque>
9 #include <functional>
10 #include <memory>
11 #include <optional>
12 #include <utility>
13 #include <vector>
14
15 #include "display_list/effects/dl_image_filter.h"
16 #include "impeller/core/sampler_descriptor.h"
17 #include "impeller/display_list/paint.h"
18 #include "impeller/entity/contents/atlas_contents.h"
19 #include "impeller/entity/contents/clip_contents.h"
20 #include "impeller/entity/contents/text_contents.h"
21 #include "impeller/entity/entity.h"
22 #include "impeller/entity/entity_pass_clip_stack.h"
23 #include "impeller/entity/geometry/geometry.h"
24 #include "impeller/entity/geometry/vertices_geometry.h"
25 #include "impeller/entity/inline_pass_context.h"
26 #include "impeller/geometry/matrix.h"
27 #include "impeller/geometry/path.h"
28 #include "impeller/geometry/point.h"
29 #include "impeller/geometry/round_rect.h"
30 #include "impeller/geometry/vector.h"
31 #include "impeller/renderer/snapshot.h"
32 #include "impeller/typographer/text_frame.h"
33
34 namespace impeller {
35
36 struct BackdropData {
37 size_t backdrop_count = 0;
38 bool all_filters_equal = true;
39 std::shared_ptr<Texture> texture_slot;
40 // A single snapshot of the backdrop filter that is used when there are
41 // multiple backdrops that share an identical filter.
42 std::optional<Snapshot> shared_filter_snapshot;
43 std::shared_ptr<flutter::DlImageFilter> last_backdrop;
44 };
45
46 struct CanvasStackEntry {
47 Matrix transform;
48 uint32_t clip_depth = 0u;
49 size_t clip_height = 0u;
50 // The number of clips tracked for this canvas stack entry.
51 size_t num_clips = 0u;
52 Scalar distributed_opacity = 1.0f;
53 Entity::RenderingMode rendering_mode = Entity::RenderingMode::kDirect;
54 // Whether all entities in the current save should be skipped.
55 bool skipping = false;
56 // Whether subpass coverage was rounded out to pixel coverage, or if false
57 // truncated.
58 bool did_round_out = false;
59 };
60
61 enum class PointStyle {
62 /// @brief Points are drawn as squares.
63 kRound,
64
65 /// @brief Points are drawn as circles.
66 kSquare,
67 };
68
69 /// Controls the behavior of the source rectangle given to DrawImageRect.
70 enum class SourceRectConstraint {
71 /// @brief Faster, but may sample outside the bounds of the source rectangle.
72 kFast,
73
74 /// @brief Sample only within the source rectangle. May be slower.
75 kStrict,
76 };
77
78 /// Specifies how much to trust the bounds rectangle provided for a list
79 /// of contents. Used by both |EntityPass| and |Canvas::SaveLayer|.
80 enum class ContentBoundsPromise {
81 /// @brief The caller makes no claims related to the size of the bounds.
82 kUnknown,
83
84 /// @brief The caller claims the bounds are a reasonably tight estimate
85 /// of the coverage of the contents and should contain all of the
86 /// contents.
87 kContainsContents,
88
89 /// @brief The caller claims the bounds are a subset of an estimate of
90 /// the reasonably tight bounds but likely clips off some of the
91 /// contents.
92 kMayClipContents,
93 };
94
95 struct LazyRenderingConfig {
96 std::unique_ptr<EntityPassTarget> entity_pass_target;
97 std::unique_ptr<InlinePassContext> inline_pass_context;
98
99 /// Whether or not the clear color texture can still be updated.
100 bool IsApplyingClearColor() const { return !inline_pass_context->IsActive(); }
101
102 LazyRenderingConfig(ContentContext& renderer,
103 std::unique_ptr<EntityPassTarget> p_entity_pass_target)
104 : entity_pass_target(std::move(p_entity_pass_target)) {
105 inline_pass_context =
106 std::make_unique<InlinePassContext>(renderer, *entity_pass_target);
107 }
108
109 LazyRenderingConfig(ContentContext& renderer,
110 std::unique_ptr<EntityPassTarget> entity_pass_target,
111 std::unique_ptr<InlinePassContext> inline_pass_context)
112 : entity_pass_target(std::move(entity_pass_target)),
113 inline_pass_context(std::move(inline_pass_context)) {}
114 };
115
116 class Canvas {
117 public:
118 static constexpr uint32_t kMaxDepth = 1 << 24;
119
120 using BackdropFilterProc = std::function<std::shared_ptr<FilterContents>(
121 FilterInput::Ref,
122 const Matrix& effect_transform,
123 Entity::RenderingMode rendering_mode)>;
124
125 Canvas(ContentContext& renderer,
126 const RenderTarget& render_target,
127 bool is_onscreen,
128 bool requires_readback);
129
130 explicit Canvas(ContentContext& renderer,
131 const RenderTarget& render_target,
132 bool is_onscreen,
133 bool requires_readback,
134 Rect cull_rect);
135
136 explicit Canvas(ContentContext& renderer,
137 const RenderTarget& render_target,
138 bool is_onscreen,
139 bool requires_readback,
140 IRect cull_rect);
141
142 ~Canvas() = default;
143
144 /// @brief Update the backdrop data used to group together backdrop filters
145 /// within the same layer
146 void SetBackdropData(std::unordered_map<int64_t, BackdropData> backdrop_data,
147 size_t backdrop_count);
148
149 /// @brief Return the culling bounds of the current render target, or nullopt
150 /// if there is no coverage.
151 std::optional<Rect> GetLocalCoverageLimit() const;
152
153 void Save(uint32_t total_content_depth = kMaxDepth);
154
155 void SaveLayer(
156 const Paint& paint,
157 std::optional<Rect> bounds = std::nullopt,
158 const flutter::DlImageFilter* backdrop_filter = nullptr,
159 ContentBoundsPromise bounds_promise = ContentBoundsPromise::kUnknown,
160 uint32_t total_content_depth = kMaxDepth,
161 bool can_distribute_opacity = false,
162 std::optional<int64_t> backdrop_id = std::nullopt);
163
164 bool Restore();
165
166 size_t GetSaveCount() const;
167
168 void RestoreToCount(size_t count);
169
170 const Matrix& GetCurrentTransform() const;
171
172 void ResetTransform();
173
174 void Transform(const Matrix& transform);
175
176 void Concat(const Matrix& transform);
177
178 void PreConcat(const Matrix& transform);
179
180 void Translate(const Vector3& offset);
181
182 void Scale(const Vector2& scale);
183
184 void Scale(const Vector3& scale);
185
186 void Skew(Scalar sx, Scalar sy);
187
188 void Rotate(Radians radians);
189
190 void DrawPath(const Path& path, const Paint& paint);
191
192 void DrawPaint(const Paint& paint);
193
194 void DrawLine(const Point& p0,
195 const Point& p1,
196 const Paint& paint,
197 bool reuse_depth = false);
198
199 void DrawRect(const Rect& rect, const Paint& paint);
200
201 void DrawOval(const Rect& rect, const Paint& paint);
202
203 void DrawRoundRect(const RoundRect& rect, const Paint& paint);
204
205 void DrawRoundSuperellipse(const RoundSuperellipse& rse, const Paint& paint);
206
207 void DrawCircle(const Point& center, Scalar radius, const Paint& paint);
208
209 void DrawPoints(const Point points[],
210 uint32_t count,
211 Scalar radius,
212 const Paint& paint,
213 PointStyle point_style);
214
215 void DrawImage(const std::shared_ptr<Texture>& image,
216 Point offset,
217 const Paint& paint,
218 const SamplerDescriptor& sampler = {});
219
220 void DrawImageRect(
221 const std::shared_ptr<Texture>& image,
222 Rect source,
223 Rect dest,
224 const Paint& paint,
225 const SamplerDescriptor& sampler = {},
226 SourceRectConstraint src_rect_constraint = SourceRectConstraint::kFast);
227
228 void DrawTextFrame(const std::shared_ptr<TextFrame>& text_frame,
229 Point position,
230 const Paint& paint);
231
232 void DrawVertices(const std::shared_ptr<VerticesGeometry>& vertices,
233 BlendMode blend_mode,
234 const Paint& paint);
235
236 void DrawAtlas(const std::shared_ptr<AtlasContents>& atlas_contents,
237 const Paint& paint);
238
239 void ClipGeometry(const Geometry& geometry,
240 Entity::ClipOperation clip_op,
241 bool is_aa = true);
242
243 void EndReplay();
244
245 uint64_t GetOpDepth() const { return current_depth_; }
246
247 uint64_t GetMaxOpDepth() const { return transform_stack_.back().clip_depth; }
248
249 struct SaveLayerState {
250 Paint paint;
251 Rect coverage;
252 };
253
254 // Visible for testing.
255 bool RequiresReadback() const { return requires_readback_; }
256
257 // Whether the current device has the capabilities to blit an offscreen
258 // texture into the onscreen.
259 //
260 // This requires the availibility of the blit framebuffer command, but is
261 // disabled for GLES. A simple glBlitFramebuffer does not support resolving
262 // different sample counts which may be present in GLES when using MSAA.
263 //
264 // Visible for testing.
265 bool SupportsBlitToOnscreen() const;
266
267 /// For picture snapshots we need addition steps to verify that final mipmaps
268 /// are generated.
269 bool EnsureFinalMipmapGeneration() const;
270
271 private:
272 ContentContext& renderer_;
273 RenderTarget render_target_;
274 const bool is_onscreen_;
275 bool requires_readback_;
276 EntityPassClipStack clip_coverage_stack_;
277
278 std::deque<CanvasStackEntry> transform_stack_;
279 std::optional<Rect> initial_cull_rect_;
280 std::vector<LazyRenderingConfig> render_passes_;
281 std::vector<SaveLayerState> save_layer_state_;
282
283 /// Backdrop layers identified by an optional backdrop id.
284 ///
285 /// This is not the same as the [backdrop_count_] below as not
286 /// all backdrop filters will have an identified backdrop id. The
287 /// backdrop_count_ is also mutated during rendering.
288 std::unordered_map<int64_t, BackdropData> backdrop_data_;
289
290 /// The remaining number of backdrop filters.
291 ///
292 /// This value is decremented while rendering. When it reaches 0, then
293 /// the FlipBackdrop can use the onscreen render target instead of
294 /// another offscreen.
295 ///
296 /// This optimization is disabled on devices that do not support framebuffer
297 /// fetch (iOS Simulator and certain OpenGLES devices).
298 size_t backdrop_count_ = 0u;
299
300 // All geometry objects created for regular draws can be stack allocated,
301 // but clip geometries must be cached for record/replay for backdrop filters
302 // and so must be kept alive longer.
303 std::vector<std::unique_ptr<Geometry>> clip_geometry_;
304
305 uint64_t current_depth_ = 0u;
306
307 Point GetGlobalPassPosition() const;
308
309 // clip depth of the previous save or 0.
310 size_t GetClipHeightFloor() const;
311
312 /// @brief Whether all entites should be skipped until a corresponding
313 /// restore.
314 bool IsSkipping() const;
315
316 /// @brief Skip all rendering/clipping entities until next restore.
317 void SkipUntilMatchingRestore(size_t total_content_depth);
318
319 void SetupRenderPass();
320
321 /// @brief Ends the current render pass, saving the result as a texture, and
322 /// thenrestart it with the backdrop cleared to the previous contents.
323 ///
324 /// The returned texture is used as the input for backdrop filters and
325 /// emulated advanced blends. Returns nullptr if there was a validation
326 /// failure.
327 ///
328 /// [should_remove_texture] defaults to false. If true, the render target
329 /// texture is removed from the entity pass target. This allows the texture to
330 /// be cached by the canvas dispatcher for usage in the backdrop filter reuse
331 /// mechanism.
332 ///
333 /// [should_use_onscreen] defaults to false. If true, the results are flipped
334 /// to the onscreen render target. This will set requires_readback_ to false.
335 /// This action is only safe to perform when there are no more backdrop
336 /// filters or advanced blends, or no more backdrop filters and the device
337 /// supports framebuffer fetch.
338 std::shared_ptr<Texture> FlipBackdrop(Point global_pass_position,
339 bool should_remove_texture = false,
340 bool should_use_onscreen = false);
341
342 bool BlitToOnscreen(bool is_onscreen = false);
343
344 size_t GetClipHeight() const;
345
346 void Initialize(std::optional<Rect> cull_rect);
347
348 void Reset();
349
350 void AddRenderEntityWithFiltersToCurrentPass(Entity& entity,
351 const Geometry* geometry,
352 const Paint& paint,
353 bool reuse_depth = false);
354
355 void AddRenderEntityToCurrentPass(Entity& entity, bool reuse_depth = false);
356
357 bool AttemptDrawBlurredRRect(const Rect& rect,
358 Size corner_radii,
359 const Paint& paint);
360
361 /// For simple DrawImageRect calls, optimize any draws with a color filter
362 /// into the corresponding atlas draw.
363 ///
364 /// Returns whether not the optimization was applied.
365 bool AttemptColorFilterOptimization(const std::shared_ptr<Texture>& image,
366 Rect source,
367 Rect dest,
368 const Paint& paint,
369 const SamplerDescriptor& sampler,
370 SourceRectConstraint src_rect_constraint);
371
372 bool AttemptBlurredTextOptimization(
373 const std::shared_ptr<TextFrame>& text_frame,
374 const std::shared_ptr<TextContents>& text_contents,
375 Entity& entity,
376 const Paint& paint);
377
378 RenderPass& GetCurrentRenderPass() const;
379
380 Canvas(const Canvas&) = delete;
381
382 Canvas& operator=(const Canvas&) = delete;
383 };
384
385 } // namespace impeller
386
387 #endif // FLUTTER_IMPELLER_DISPLAY_LIST_CANVAS_H_
atlas_contents.h
impeller::Canvas
Definition: canvas.h:116
impeller::Canvas::ClipGeometry
void ClipGeometry(const Geometry &geometry, Entity::ClipOperation clip_op, bool is_aa=true)
Definition: canvas.cc:686
impeller::Canvas::kMaxDepth
static constexpr uint32_t kMaxDepth
Definition: canvas.h:118
impeller::Canvas::SetBackdropData
void SetBackdropData(std::unordered_map< int64_t, BackdropData > backdrop_data, size_t backdrop_count)
Update the backdrop data used to group together backdrop filters within the same layer.
Definition: canvas.cc:1742
impeller::Canvas::Canvas
Canvas(ContentContext &renderer, const RenderTarget &render_target, bool is_onscreen, bool requires_readback)
Definition: canvas.cc:180
impeller::Canvas::RequiresReadback
bool RequiresReadback() const
Definition: canvas.h:255
impeller::Canvas::DrawRoundSuperellipse
void DrawRoundSuperellipse(const RoundSuperellipse &rse, const Paint &paint)
Definition: canvas.cc:640
impeller::Canvas::GetLocalCoverageLimit
std::optional< Rect > GetLocalCoverageLimit() const
Return the culling bounds of the current render target, or nullopt if there is no coverage.
Definition: canvas.cc:1060
impeller::Canvas::SaveLayer
void SaveLayer(const Paint &paint, std::optional< Rect > bounds=std::nullopt, const flutter::DlImageFilter *backdrop_filter=nullptr, ContentBoundsPromise bounds_promise=ContentBoundsPromise::kUnknown, uint32_t total_content_depth=kMaxDepth, bool can_distribute_opacity=false, std::optional< int64_t > backdrop_id=std::nullopt)
Definition: canvas.cc:1091
impeller::Canvas::GetCurrentTransform
const Matrix & GetCurrentTransform() const
Definition: canvas.cc:254
impeller::Canvas::DrawVertices
void DrawVertices(const std::shared_ptr< VerticesGeometry > &vertices, BlendMode blend_mode, const Paint &paint)
Definition: canvas.cc:864
impeller::Canvas::DrawOval
void DrawOval(const Rect &rect, const Paint &paint)
Definition: canvas.cc:583
impeller::Canvas::DrawImageRect
void DrawImageRect(const std::shared_ptr< Texture > &image, Rect source, Rect dest, const Paint &paint, const SamplerDescriptor &sampler={}, SourceRectConstraint src_rect_constraint=SourceRectConstraint::kFast)
Definition: canvas.cc:799
impeller::Canvas::RestoreToCount
void RestoreToCount(size_t count)
Definition: canvas.cc:301
impeller::Canvas::Restore
bool Restore()
Definition: canvas.cc:1329
impeller::Canvas::GetSaveCount
size_t GetSaveCount() const
Definition: canvas.cc:293
impeller::Canvas::Concat
void Concat(const Matrix &transform)
Definition: canvas.cc:238
impeller::Canvas::Transform
void Transform(const Matrix &transform)
Definition: canvas.cc:250
impeller::Canvas::GetMaxOpDepth
uint64_t GetMaxOpDepth() const
Definition: canvas.h:247
impeller::Canvas::BackdropFilterProc
std::function< std::shared_ptr< FilterContents >(FilterInput::Ref, const Matrix &effect_transform, Entity::RenderingMode rendering_mode)> BackdropFilterProc
Definition: canvas.h:123
impeller::Canvas::PreConcat
void PreConcat(const Matrix &transform)
Definition: canvas.cc:242
impeller::Canvas::Rotate
void Rotate(Radians radians)
Definition: canvas.cc:274
impeller::Canvas::DrawPoints
void DrawPoints(const Point points[], uint32_t count, Scalar radius, const Paint &paint, PointStyle point_style)
Definition: canvas.cc:767
impeller::Canvas::ResetTransform
void ResetTransform()
Definition: canvas.cc:246
impeller::Canvas::DrawTextFrame
void DrawTextFrame(const std::shared_ptr< TextFrame > &text_frame, Point position, const Paint &paint)
Definition: canvas.cc:1520
impeller::Canvas::DrawImage
void DrawImage(const std::shared_ptr< Texture > &image, Point offset, const Paint &paint, const SamplerDescriptor &sampler={})
Definition: canvas.cc:785
impeller::Canvas::DrawPaint
void DrawPaint(const Paint &paint)
Definition: canvas.cc:324
impeller::Canvas::EndReplay
void EndReplay()
Definition: canvas.cc:1943
impeller::Canvas::DrawRoundRect
void DrawRoundRect(const RoundRect &rect, const Paint &paint)
Definition: canvas.cc:613
impeller::Canvas::Skew
void Skew(Scalar sx, Scalar sy)
Definition: canvas.cc:270
impeller::Canvas::~Canvas
~Canvas()=default
impeller::Canvas::Scale
void Scale(const Vector2 &scale)
Definition: canvas.cc:262
impeller::Canvas::GetOpDepth
uint64_t GetOpDepth() const
Definition: canvas.h:245
impeller::Canvas::DrawPath
void DrawPath(const Path &path, const Paint &paint)
Definition: canvas.cc:309
impeller::Canvas::Save
void Save(uint32_t total_content_depth=kMaxDepth)
Definition: canvas.cc:1043
impeller::Canvas::SupportsBlitToOnscreen
bool SupportsBlitToOnscreen() const
Definition: canvas.cc:1868
impeller::Canvas::DrawRect
void DrawRect(const Rect &rect, const Paint &paint)
Definition: canvas.cc:565
impeller::Canvas::EnsureFinalMipmapGeneration
bool EnsureFinalMipmapGeneration() const
Definition: canvas.cc:1925
impeller::Canvas::DrawAtlas
void DrawAtlas(const std::shared_ptr< AtlasContents > &atlas_contents, const Paint &paint)
Definition: canvas.cc:977
impeller::Canvas::DrawLine
void DrawLine(const Point &p0, const Point &p1, const Paint &paint, bool reuse_depth=false)
Definition: canvas.cc:542
impeller::Canvas::Translate
void Translate(const Vector3 &offset)
Definition: canvas.cc:258
impeller::Canvas::DrawCircle
void DrawCircle(const Point &center, Scalar radius, const Paint &paint)
Definition: canvas.cc:663
impeller::ContentContext
Definition: content_context.h:138
impeller::Entity
Definition: entity.h:20
impeller::Entity::RenderingMode
RenderingMode
Definition: entity.h:27
impeller::Entity::RenderingMode::kDirect
@ kDirect
impeller::Entity::ClipOperation
ClipOperation
Definition: entity.h:61
impeller::EntityPassClipStack
A class that tracks all clips that have been recorded in the current entity pass stencil.
Definition: entity_pass_clip_stack.h:23
impeller::FilterInput::Ref
std::shared_ptr< FilterInput > Ref
Definition: filter_input.h:32
impeller::Geometry
Definition: geometry.h:50
impeller::Path
Paths are lightweight objects that describe a collection of linear, quadratic, or cubic segments....
Definition: path.h:54
impeller::RenderPass
Render passes encode render commands directed as one specific render target into an underlying comman...
Definition: render_pass.h:30
impeller::RenderTarget
Definition: render_target.h:38
clip_contents.h
paint.h
entity.h
entity_pass_clip_stack.h
transform
Matrix transform
Definition: gaussian_blur_filter_contents.cc:214
path.h
geometry.h
inline_pass_context.h
matrix.h
impeller
Definition: allocation.cc:12
impeller::Scalar
float Scalar
Definition: scalar.h:18
impeller::SourceRectConstraint
SourceRectConstraint
Controls the behavior of the source rectangle given to DrawImageRect.
Definition: canvas.h:70
impeller::SourceRectConstraint::kStrict
@ kStrict
Sample only within the source rectangle. May be slower.
impeller::SourceRectConstraint::kFast
@ kFast
Faster, but may sample outside the bounds of the source rectangle.
impeller::PointStyle
PointStyle
Definition: canvas.h:61
impeller::PointStyle::kRound
@ kRound
Points are drawn as squares.
impeller::PointStyle::kSquare
@ kSquare
Points are drawn as circles.
impeller::Point
TPoint< Scalar > Point
Definition: point.h:327
impeller::BlendMode
BlendMode
Definition: color.h:58
impeller::ContentBoundsPromise
ContentBoundsPromise
Definition: canvas.h:80
impeller::ContentBoundsPromise::kUnknown
@ kUnknown
The caller makes no claims related to the size of the bounds.
impeller::ContentBoundsPromise::kMayClipContents
@ kMayClipContents
The caller claims the bounds are a subset of an estimate of the reasonably tight bounds but likely cl...
impeller::ContentBoundsPromise::kContainsContents
@ kContainsContents
The caller claims the bounds are a reasonably tight estimate of the coverage of the contents and shou...
std
Definition: comparable.h:95
point.h
round_rect.h
sampler_descriptor.h
snapshot.h
scale
const Scalar scale
Definition: stroke_path_geometry.cc:319
offset
SeparatedVector2 offset
Definition: stroke_path_geometry.cc:322
impeller::BackdropData
Definition: canvas.h:36
impeller::BackdropData::all_filters_equal
bool all_filters_equal
Definition: canvas.h:38
impeller::BackdropData::texture_slot
std::shared_ptr< Texture > texture_slot
Definition: canvas.h:39
impeller::BackdropData::last_backdrop
std::shared_ptr< flutter::DlImageFilter > last_backdrop
Definition: canvas.h:43
impeller::BackdropData::backdrop_count
size_t backdrop_count
Definition: canvas.h:37
impeller::BackdropData::shared_filter_snapshot
std::optional< Snapshot > shared_filter_snapshot
Definition: canvas.h:42
impeller::Canvas::SaveLayerState
Definition: canvas.h:249
impeller::Canvas::SaveLayerState::coverage
Rect coverage
Definition: canvas.h:251
impeller::Canvas::SaveLayerState::paint
Paint paint
Definition: canvas.h:250
impeller::CanvasStackEntry
Definition: canvas.h:46
impeller::CanvasStackEntry::clip_height
size_t clip_height
Definition: canvas.h:49
impeller::CanvasStackEntry::did_round_out
bool did_round_out
Definition: canvas.h:58
impeller::CanvasStackEntry::rendering_mode
Entity::RenderingMode rendering_mode
Definition: canvas.h:53
impeller::CanvasStackEntry::distributed_opacity
Scalar distributed_opacity
Definition: canvas.h:52
impeller::CanvasStackEntry::skipping
bool skipping
Definition: canvas.h:55
impeller::CanvasStackEntry::num_clips
size_t num_clips
Definition: canvas.h:51
impeller::CanvasStackEntry::transform
Matrix transform
Definition: canvas.h:47
impeller::CanvasStackEntry::clip_depth
uint32_t clip_depth
Definition: canvas.h:48
impeller::LazyRenderingConfig
Definition: canvas.h:95
impeller::LazyRenderingConfig::LazyRenderingConfig
LazyRenderingConfig(ContentContext &renderer, std::unique_ptr< EntityPassTarget > p_entity_pass_target)
Definition: canvas.h:102
impeller::LazyRenderingConfig::IsApplyingClearColor
bool IsApplyingClearColor() const
Whether or not the clear color texture can still be updated.
Definition: canvas.h:100
impeller::LazyRenderingConfig::inline_pass_context
std::unique_ptr< InlinePassContext > inline_pass_context
Definition: canvas.h:97
impeller::LazyRenderingConfig::entity_pass_target
std::unique_ptr< EntityPassTarget > entity_pass_target
Definition: canvas.h:96
impeller::LazyRenderingConfig::LazyRenderingConfig
LazyRenderingConfig(ContentContext &renderer, std::unique_ptr< EntityPassTarget > entity_pass_target, std::unique_ptr< InlinePassContext > inline_pass_context)
Definition: canvas.h:109
impeller::Matrix
A 4x4 matrix using column-major storage.
Definition: matrix.h:37
impeller::Paint
Definition: paint.h:26
impeller::Radians
Definition: scalar.h:43
impeller::RoundRect
Definition: round_rect.h:15
impeller::RoundSuperellipse
Definition: round_superellipse.h:17
impeller::SamplerDescriptor
Definition: sampler_descriptor.h:14
impeller::TPoint< Scalar >
impeller::TRect< Scalar >
impeller::TSize< Scalar >
impeller::Vector3
Definition: vector.h:20
text_contents.h
text_frame.h
vector.h
vertices_geometry.h