Skia
2D Graphics Library
SkSurface.h File Reference
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSamplingOptions.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSurfaceProps.h"
#include "include/core/SkTypes.h"
#include <cstddef>
#include <cstdint>
#include <memory>
Include dependency graph for SkSurface.h:

Go to the source code of this file.

Classes

class  SkSurface
 SkSurface is responsible for managing the pixels that a canvas draws into. More...
 

Namespaces

 skgpu
 This file includes numerous public types that are used by all of our gpu backends.
 
 skgpu::graphite
 
 SkSurfaces
 

Typedefs

using SkSurfaces::PixelsReleaseProc = void(void *pixels, void *context)
 

Enumerations

enum class  SkSurfaces::BackendSurfaceAccess { SkSurfaces::kNoAccess , SkSurfaces::kPresent }
 

Functions

SK_API sk_sp< SkSurfaceSkSurfaces::Null (int width, int height)
 Returns SkSurface without backing pixels. More...
 
SK_API sk_sp< SkSurfaceSkSurfaces::Raster (const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
 Allocates raster SkSurface. More...
 
sk_sp< SkSurfaceSkSurfaces::Raster (const SkImageInfo &imageInfo, const SkSurfaceProps *props=nullptr)
 
SK_API sk_sp< SkSurfaceSkSurfaces::WrapPixels (const SkImageInfo &imageInfo, void *pixels, size_t rowBytes, const SkSurfaceProps *surfaceProps=nullptr)
 Allocates raster SkSurface. More...
 
sk_sp< SkSurfaceSkSurfaces::WrapPixels (const SkPixmap &pm, const SkSurfaceProps *props=nullptr)
 
SK_API sk_sp< SkSurfaceSkSurfaces::WrapPixels (const SkImageInfo &imageInfo, void *pixels, size_t rowBytes, PixelsReleaseProc, void *context, const SkSurfaceProps *surfaceProps=nullptr)
 Allocates raster SkSurface. More...