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

#include <image_decoder_no_gl_unittests.h>

Inheritance diagram for impeller::TestImpellerDeviceBuffer:
impeller::DeviceBuffer

Public Member Functions

 TestImpellerDeviceBuffer (DeviceBufferDescriptor desc)
 
 ~TestImpellerDeviceBuffer ()
 
- Public Member Functions inherited from impeller::DeviceBuffer
virtual ~DeviceBuffer ()
 
bool CopyHostBuffer (const uint8_t *source, Range source_range, size_t offset=0u)
 
virtual bool SetLabel (const std::string &label)=0
 
virtual bool SetLabel (const std::string &label, Range range)=0
 
const DeviceBufferDescriptorGetDeviceBufferDescriptor () const
 
virtual uint8_t * OnGetContents () const =0
 
virtual void Flush (std::optional< Range > range=std::nullopt) const
 
virtual void Invalidate (std::optional< Range > range=std::nullopt) const
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::DeviceBuffer
static BufferView AsBufferView (std::shared_ptr< DeviceBuffer > buffer)
 Create a buffer view of this entire buffer. More...
 
- Protected Member Functions inherited from impeller::DeviceBuffer
 DeviceBuffer (DeviceBufferDescriptor desc)
 
virtual bool OnCopyHostBuffer (const uint8_t *source, Range source_range, size_t offset)=0
 
- Protected Attributes inherited from impeller::DeviceBuffer
const DeviceBufferDescriptor desc_
 

Detailed Description

Definition at line 37 of file image_decoder_no_gl_unittests.h.

Constructor & Destructor Documentation

◆ TestImpellerDeviceBuffer()

impeller::TestImpellerDeviceBuffer::TestImpellerDeviceBuffer ( DeviceBufferDescriptor  desc)
inlineexplicit

Definition at line 39 of file image_decoder_no_gl_unittests.h.

41 bytes_ = static_cast<uint8_t*>(malloc(desc.size));
42 }
DeviceBuffer(DeviceBufferDescriptor desc)
Definition: device_buffer.cc:9
void * malloc(size_t size)
Definition: allocation.cc:19

◆ ~TestImpellerDeviceBuffer()

impeller::TestImpellerDeviceBuffer::~TestImpellerDeviceBuffer ( )
inline

Definition at line 44 of file image_decoder_no_gl_unittests.h.

44{ free(bytes_); }

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