Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
SkMeshPriv::CpuBuffer< Base > Class Template Referencefinal

#include <SkMeshPriv.h>

Inheritance diagram for SkMeshPriv::CpuBuffer< Base >:

Public Member Functions

 ~CpuBuffer () override=default
 
const void * peek () const override
 
size_t size () const override
 

Static Public Member Functions

static sk_sp< Base > Make (const void *data, size_t size)
 

Detailed Description

template<typename Base>
class SkMeshPriv::CpuBuffer< Base >

Definition at line 99 of file SkMeshPriv.h.

Constructor & Destructor Documentation

◆ ~CpuBuffer()

template<typename Base >
SkMeshPriv::CpuBuffer< Base >::~CpuBuffer ( )
overridedefault

Member Function Documentation

◆ Make()

template<typename Base >
sk_sp< Base > SkMeshPriv::CpuBuffer< Base >::Make ( const void *  data,
size_t  size 
)
static

Definition at line 123 of file SkMeshPriv.h.

124 {
125 SkASSERT(size);
126 sk_sp<SkData> storage;
127 if (data) {
128 storage = SkData::MakeWithCopy(data, size);
129 } else {
131 }
132 return sk_sp<Base>(new CpuBuffer<Base>(std::move(storage)));
133}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
Definition: SkData.cpp:111
static sk_sp< SkData > MakeZeroInitialized(size_t length)
Definition: SkData.cpp:120
size_t size() const override
Definition: SkMeshPriv.h:107
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ peek()

template<typename Base >
const void * SkMeshPriv::CpuBuffer< Base >::peek ( ) const
inlineoverride

Definition at line 105 of file SkMeshPriv.h.

105{ return fData->data(); }
const void * data() const
Definition: SkData.h:37

◆ size()

template<typename Base >
size_t SkMeshPriv::CpuBuffer< Base >::size ( ) const
inlineoverride

Definition at line 107 of file SkMeshPriv.h.

107{ return fData->size(); }
size_t size() const
Definition: SkData.h:30

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