Flutter Engine
 
Loading...
Searching...
No Matches
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
 Label this resource for inspection in GPU debugging tools.
 
void SetLabel (std::string_view label, std::string_view trailing) override
 Label this resource for inspection in GPU debugging tools, with label and trailing will be concatenated together.
 
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 ()
 
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)
 
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)
 
- 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.

22: Texture(desc) {}
Texture(TextureDescriptor desc)
Definition texture.cc:11

Member Function Documentation

◆ GetSize()

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

◆ IsValid()

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

Implements impeller::Texture.

Definition at line 26 of file image_decoder_no_gl_unittests.h.

26{ 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 29 of file image_decoder_no_gl_unittests.h.

29 {
30 return true;
31 }

◆ OnSetContents() [2/2]

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

Implements impeller::Texture.

Definition at line 32 of file image_decoder_no_gl_unittests.h.

33 {
34 return true;
35 }

◆ SetLabel() [1/2]

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

Label this resource for inspection in GPU debugging tools.

This functionality may be disabled in release builds.

Implements impeller::Texture.

Definition at line 24 of file image_decoder_no_gl_unittests.h.

24{}

◆ SetLabel() [2/2]

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

Label this resource for inspection in GPU debugging tools, with label and trailing will be concatenated together.

This functionality may be disabled in release builds.

Implements impeller::Texture.

Definition at line 25 of file image_decoder_no_gl_unittests.h.

25{}

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