Flutter Engine
flutter::ChildSceneLayer Class Reference

#include <child_scene_layer.h>

Inheritance diagram for flutter::ChildSceneLayer:
flutter::Layer

Public Member Functions

 ChildSceneLayer (zx_koid_t layer_id, const SkPoint &offset, const SkSize &size, bool hit_testable)
 
 ~ChildSceneLayer () override=default
 
void Preroll (PrerollContext *context, const SkMatrix &matrix) override
 
void Paint (PaintContext &context) const override
 
void UpdateScene (std::shared_ptr< SceneUpdateContext > context) override
 
- Public Member Functions inherited from flutter::Layer
 Layer ()
 
virtual ~Layer ()
 
bool needs_system_composite () const
 
void set_needs_system_composite (bool value)
 
const SkRect & paint_bounds () const
 
void set_paint_bounds (const SkRect &paint_bounds)
 
bool needs_painting () const
 
uint64_t unique_id () const
 

Detailed Description

Definition at line 17 of file child_scene_layer.h.

Constructor & Destructor Documentation

◆ ChildSceneLayer()

flutter::ChildSceneLayer::ChildSceneLayer ( zx_koid_t  layer_id,
const SkPoint &  offset,
const SkSize &  size,
bool  hit_testable 
)

Definition at line 9 of file child_scene_layer.cc.

13  : layer_id_(layer_id),
14  offset_(offset),
15  size_(size),
16  hit_testable_(hit_testable) {}
constexpr std::size_t size(T(&array)[N])
Definition: size.h:13

◆ ~ChildSceneLayer()

flutter::ChildSceneLayer::~ChildSceneLayer ( )
overridedefault

Member Function Documentation

◆ Paint()

void flutter::ChildSceneLayer::Paint ( PaintContext context) const
overridevirtual

Implements flutter::Layer.

Definition at line 25 of file child_scene_layer.cc.

25 {}

◆ Preroll()

void flutter::ChildSceneLayer::Preroll ( PrerollContext context,
const SkMatrix &  matrix 
)
overridevirtual

Reimplemented from flutter::Layer.

Definition at line 18 of file child_scene_layer.cc.

References TRACE_EVENT0.

18  {
19  TRACE_EVENT0("flutter", "ChildSceneLayer::Preroll");
20 
21  context->child_scene_layer_exists_below = true;
22  CheckForChildLayerBelow(context);
23 }
#define TRACE_EVENT0(category_group, name)
Definition: trace_event.h:75

◆ UpdateScene()

void flutter::ChildSceneLayer::UpdateScene ( std::shared_ptr< SceneUpdateContext context)
override

Definition at line 27 of file child_scene_layer.cc.

References FML_DCHECK, flutter::Layer::needs_system_composite(), and TRACE_EVENT0.

27  {
28  TRACE_EVENT0("flutter", "ChildSceneLayer::UpdateScene");
30  context->UpdateView(layer_id_, offset_, size_, hit_testable_);
31 }
#define TRACE_EVENT0(category_group, name)
Definition: trace_event.h:75
#define FML_DCHECK(condition)
Definition: logging.h:86
bool needs_system_composite() const
Definition: layer.h:161

The documentation for this class was generated from the following files: