Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
flutter::Texture Class Referenceabstract

#include <texture.h>

Inheritance diagram for flutter::Texture:
flutter::ContextListener flutter::EmbedderExternalTextureGL flutter::EmbedderExternalTextureMetal flutter::IOSExternalTextureMetal flutter::ImageExternalTexture flutter::SurfaceTextureExternalTexture flutter::testing::MockTexture flutter::testing::MockTexture impeller::testing::MockTexture

Classes

struct  PaintContext
 

Public Member Functions

 Texture (int64_t id)
 
virtual ~Texture ()
 
virtual void Paint (PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling)=0
 
virtual void MarkNewFrameAvailable ()=0
 
virtual void OnTextureUnregistered ()=0
 
int64_t Id ()
 
- Public Member Functions inherited from flutter::ContextListener
 ContextListener ()
 
 ~ContextListener ()
 
virtual void OnGrContextCreated ()=0
 
virtual void OnGrContextDestroyed ()=0
 

Detailed Description

Definition at line 39 of file texture.h.

Constructor & Destructor Documentation

◆ Texture()

flutter::Texture::Texture ( int64_t  id)
explicit

Definition at line 13 of file texture.cc.

13: id_(id) {}

◆ ~Texture()

flutter::Texture::~Texture ( )
virtualdefault

Member Function Documentation

◆ Id()

int64_t flutter::Texture::Id ( )
inline

Definition at line 63 of file texture.h.

63{ return id_; }

◆ MarkNewFrameAvailable()

virtual void flutter::Texture::MarkNewFrameAvailable ( )
pure virtual

◆ OnTextureUnregistered()

virtual void flutter::Texture::OnTextureUnregistered ( )
pure virtual

◆ Paint()

virtual void flutter::Texture::Paint ( PaintContext context,
const SkRect bounds,
bool  freeze,
const DlImageSampling  sampling 
)
pure virtual

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