Skia
2D Graphics Library
SkMallocPixelRef.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include <cstddef>
Include dependency graph for SkMallocPixelRef.h:

Go to the source code of this file.

Namespaces

 SkMallocPixelRef
 We explicitly use the same allocator for our pixels that SkMask does, so that we can freely assign memory allocated by one class to the other.
 

Functions

SK_API sk_sp< SkPixelRefSkMallocPixelRef::MakeAllocate (const SkImageInfo &, size_t rowBytes)
 Return a new SkMallocPixelRef, automatically allocating storage for the pixels. More...
 
SK_API sk_sp< SkPixelRefSkMallocPixelRef::MakeWithData (const SkImageInfo &, size_t rowBytes, sk_sp< SkData > data)
 Return a new SkMallocPixelRef that will use the provided SkData and rowBytes as pixel storage. More...