Skia
2D Graphics Library
SkMallocPixelRef.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 The Android Open Source Project
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef SkMallocPixelRef_DEFINED
9 #define SkMallocPixelRef_DEFINED
10 
12 #include "include/core/SkRefCnt.h"
13 #include "include/core/SkTypes.h"
14 class SkData;
15 struct SkImageInfo;
16 
20 namespace SkMallocPixelRef {
32 
41 } // namespace SkMallocPixelRef
42 #endif
SkMallocPixelRef
We explicitly use the same allocator for our pixels that SkMask does, so that we can freely assign me...
Definition: SkMallocPixelRef.h:20
SkPixelRef.h
SkMallocPixelRef::MakeWithData
SK_API sk_sp< SkPixelRef > 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.
SkTypes.h
SkMallocPixelRef::MakeAllocate
SK_API sk_sp< SkPixelRef > MakeAllocate(const SkImageInfo &, size_t rowBytes)
Return a new SkMallocPixelRef, automatically allocating storage for the pixels.
SkData
SkData holds an immutable data buffer.
Definition: SkData.h:22
SkRefCnt.h
sk_sp< SkPixelRef >
SK_API
#define SK_API
Definition: SkTypes.h:181
SkImageInfo
Definition: SkImageInfo.h:283