#include <SkMesh.h>
Definition at line 265 of file SkMesh.h.
◆ onUpdate()
virtual bool SkMesh::IndexBuffer::onUpdate |
( |
GrDirectContext * |
, |
|
|
const void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
privatepure virtual |
◆ size()
virtual size_t SkMesh::IndexBuffer::size |
( |
| ) |
const |
|
pure virtual |
◆ update()
bool SkMesh::IndexBuffer::update |
( |
GrDirectContext * |
dc, |
|
|
const void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
Modifies the data in the IndexBuffer by copying size bytes from data into the buffer at offset. Fails if offset + size > this->size() or if either offset or size is not aligned to 4 bytes. The GrDirectContext* must match that used to create the buffer. We take it as a parameter to emphasize that the context must be used to update the data and thus the context must be valid for the current thread.
Definition at line 874 of file SkMesh.cpp.
877 {
879}
static bool check_update(const void *data, size_t offset, size_t size, size_t bufferSize)
virtual size_t size() const =0
virtual bool onUpdate(GrDirectContext *, const void *data, size_t offset, size_t size)=0
std::shared_ptr< const fml::Mapping > data
The documentation for this class was generated from the following files: