Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::TestImpellerTexture Class Reference

#include <image_decoder_no_gl_unittests.h>

Inheritance diagram for impeller::TestImpellerTexture:
impeller::Texture

Public Member Functions

 TestImpellerTexture (TextureDescriptor desc)
 
void SetLabel (std::string_view label) override
 
bool IsValid () const override
 
ISize GetSize () const
 
bool OnSetContents (const uint8_t *contents, size_t length, size_t slice)
 
bool OnSetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice)
 
- Public Member Functions inherited from impeller::Texture
virtual ~Texture ()
 
virtual void SetLabel (std::string_view label)=0
 
bool SetContents (const uint8_t *contents, size_t length, size_t slice=0, bool is_opaque=false)
 
bool SetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice=0, bool is_opaque=false)
 
virtual bool IsValid () const =0
 
virtual ISize GetSize () const =0
 
bool IsOpaque () const
 
size_t GetMipCount () const
 
const TextureDescriptorGetTextureDescriptor () const
 
void SetCoordinateSystem (TextureCoordinateSystem coordinate_system)
 
TextureCoordinateSystem GetCoordinateSystem () const
 
virtual Scalar GetYCoordScale () const
 
bool NeedsMipmapGeneration () const
 

Additional Inherited Members

- Protected Member Functions inherited from impeller::Texture
 Texture (TextureDescriptor desc)
 
virtual bool OnSetContents (const uint8_t *contents, size_t length, size_t slice)=0
 
virtual bool OnSetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice)=0
 
- Protected Attributes inherited from impeller::Texture
bool mipmap_generated_ = false
 

Detailed Description

Definition at line 20 of file image_decoder_no_gl_unittests.h.

Constructor & Destructor Documentation

◆ TestImpellerTexture()

impeller::TestImpellerTexture::TestImpellerTexture ( TextureDescriptor  desc)
inlineexplicit

Definition at line 22 of file image_decoder_no_gl_unittests.h.

Member Function Documentation

◆ GetSize()

ISize impeller::TestImpellerTexture::GetSize ( ) const
inlinevirtual

Implements impeller::Texture.

Definition at line 26 of file image_decoder_no_gl_unittests.h.

26{ return GetTextureDescriptor().size; }
const TextureDescriptor & GetTextureDescriptor() const
Definition: texture.cc:57

◆ IsValid()

bool impeller::TestImpellerTexture::IsValid ( ) const
inlineoverridevirtual

Implements impeller::Texture.

Definition at line 25 of file image_decoder_no_gl_unittests.h.

25{ return true; }

◆ OnSetContents() [1/2]

bool impeller::TestImpellerTexture::OnSetContents ( const uint8_t *  contents,
size_t  length,
size_t  slice 
)
inlinevirtual

Implements impeller::Texture.

Definition at line 28 of file image_decoder_no_gl_unittests.h.

28 {
29 return true;
30 }

◆ OnSetContents() [2/2]

bool impeller::TestImpellerTexture::OnSetContents ( std::shared_ptr< const fml::Mapping mapping,
size_t  slice 
)
inlinevirtual

Implements impeller::Texture.

Definition at line 31 of file image_decoder_no_gl_unittests.h.

32 {
33 return true;
34 }

◆ SetLabel()

void impeller::TestImpellerTexture::SetLabel ( std::string_view  label)
inlineoverridevirtual

Implements impeller::Texture.

Definition at line 24 of file image_decoder_no_gl_unittests.h.

24{}

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