#include <texture_layer.h>
Public Member Functions | |
| TextureLayer (const DlPoint &offset, const DlSize &size, int64_t texture_id, bool freeze, DlImageSampling sampling) | |
| bool | IsReplacing (DiffContext *context, const Layer *layer) const override |
| void | Diff (DiffContext *context, const Layer *old_layer) override |
| const TextureLayer * | as_texture_layer () const override |
| void | Preroll (PrerollContext *context) override |
| void | Paint (PaintContext &context) const override |
Public Member Functions inherited from flutter::Layer | |
| Layer () | |
| virtual | ~Layer () |
| void | AssignOldLayer (Layer *old_layer) |
| virtual void | PreservePaintRegion (DiffContext *context) |
| virtual void | PaintChildren (PaintContext &context) const |
| bool | subtree_has_platform_view () const |
| void | set_subtree_has_platform_view (bool value) |
| const DlRect & | paint_bounds () const |
| void | set_paint_bounds (const DlRect &paint_bounds) |
| bool | is_empty () const |
| bool | needs_painting (PaintContext &context) const |
| uint64_t | original_layer_id () const |
| uint64_t | unique_id () const |
| virtual RasterCacheKeyID | caching_key_id () const |
| virtual const ContainerLayer * | as_container_layer () const |
| virtual const DisplayListLayer * | as_display_list_layer () const |
| virtual const PerformanceOverlayLayer * | as_performance_overlay_layer () const |
| virtual const testing::MockLayer * | as_mock_layer () const |
Additional Inherited Members | |
Static Public Attributes inherited from flutter::Layer | |
| static constexpr int | kSaveLayerRenderFlags |
| static constexpr int | kRasterCacheRenderFlags |
Definition at line 12 of file texture_layer.h.
| flutter::TextureLayer::TextureLayer | ( | const DlPoint & | offset, |
| const DlSize & | size, | ||
| int64_t | texture_id, | ||
| bool | freeze, | ||
| DlImageSampling | sampling | ||
| ) |
Definition at line 11 of file texture_layer.cc.
|
inlineoverridevirtual |
Reimplemented from flutter::Layer.
Definition at line 26 of file texture_layer.h.
|
overridevirtual |
Reimplemented from flutter::Layer.
Definition at line 22 of file texture_layer.cc.
References flutter::DiffContext::AddLayerBounds(), flutter::Layer::as_texture_layer(), flutter::DiffContext::CurrentSubtreeRegion(), FML_DCHECK, flutter::DiffContext::GetOldLayerPaintRegion(), flutter::DiffContext::IsSubtreeDirty(), impeller::TRect< Scalar >::MakeOriginSize(), flutter::DiffContext::MarkSubtreeDirty(), flutter::DiffContext::MarkSubtreeHasTextureLayer(), and flutter::DiffContext::SetLayerPaintRegion().
|
inlineoverridevirtual |
Reimplemented from flutter::Layer.
Definition at line 20 of file texture_layer.h.
References flutter::Layer::as_texture_layer().
|
overridevirtual |
Implements flutter::Layer.
Definition at line 48 of file texture_layer.cc.
References flutter::PaintContext::aiks_context, flutter::Texture::PaintContext::canvas, flutter::PaintContext::canvas, flutter::LayerStateStack::fill(), FML_DCHECK, flutter::PaintContext::gr_context, flutter::Layer::needs_painting(), flutter::Layer::paint_bounds(), flutter::PaintContext::state_stack, texture, flutter::PaintContext::texture_registry, and TRACE_EVENT_INSTANT0.
|
overridevirtual |
Implements flutter::Layer.
Definition at line 42 of file texture_layer.cc.
References flutter::PrerollContext::has_texture_layer, flutter::LayerStateStack::kCallerCanApplyOpacity, impeller::TRect< Scalar >::MakeOriginSize(), flutter::PrerollContext::renderable_state_flags, and flutter::Layer::set_paint_bounds().