Flutter Engine
The Flutter Engine
Functions
GrMeshDrawTarget.cpp File Reference
#include "src/gpu/ganesh/GrMeshDrawTarget.h"
#include "src/gpu/BufferWriter.h"
#include "src/gpu/ganesh/GrResourceProvider.h"

Go to the source code of this file.

Functions

template<typename W >
static W make_writer (void *p, int count, size_t elementSize)
 

Function Documentation

◆ make_writer()

template<typename W >
static W make_writer ( void *  p,
int  count,
size_t  elementSize 
)
static

Definition at line 18 of file GrMeshDrawTarget.cpp.

18 {
19 // Don't worry about overflow in calculating byte size if 'p' is not null, presumably the actual
20 // allocation validated it, so it should be safe after the fact.
21 return p ? W{p, count * elementSize} : W{};
22}
int count
Definition: FontMgrTest.cpp:50
#define W
Definition: aaa.cpp:17