Skia
2DGraphicsLibrary
|
Describes a surface to be created. More...
#include <GrTypes.h>
Public Attributes | |
GrSurfaceFlags | fFlags |
bitfield of TextureFlags | |
GrSurfaceOrigin | fOrigin |
origin of the texture | |
int | fWidth |
Width of the texture. | |
int | fHeight |
Height of the texture. | |
GrPixelConfig | fConfig |
Format of source data of the texture. More... | |
int | fSampleCnt |
The number of samples per pixel or 0 to disable full scene AA. More... | |
bool | fIsMipMapped |
Indicates if the texture has mipmaps. | |
Describes a surface to be created.
GrPixelConfig GrSurfaceDesc::fConfig |
Format of source data of the texture.
Not guaranteed to be the same as internal format used by 3D API.
int GrSurfaceDesc::fSampleCnt |
The number of samples per pixel or 0 to disable full scene AA.
This only applies if the kRenderTarget_GrSurfaceFlag is set. The actual number of samples may not exactly match the request. The request will be rounded up to the next supported sample count, or down if it is larger than the max supported count.