Skia
2D Graphics Library
SkSurfaceProps Class Reference

Describes properties and constraints of a given SkSurface. More...

#include <SkSurfaceProps.h>

Public Types

enum  Flags { kUseDeviceIndependentFonts_Flag = 1 << 0 }
 
enum  InitType { kLegacyFontHost_InitType }
 

Public Member Functions

 SkSurfaceProps (uint32_t flags, SkPixelGeometry)
 
 SkSurfaceProps (InitType)
 
 SkSurfaceProps (uint32_t flags, InitType)
 
 SkSurfaceProps (const SkSurfaceProps &)
 
SkSurfacePropsoperator= (const SkSurfaceProps &)
 
uint32_t flags () const
 
SkPixelGeometry pixelGeometry () const
 
bool isUseDeviceIndependentFonts () const
 
bool operator== (const SkSurfaceProps &that) const
 
bool operator!= (const SkSurfaceProps &that) const
 

Static Public Attributes

static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_Flag
 Deprecated alias used by Chromium. More...
 

Detailed Description

Describes properties and constraints of a given SkSurface.

The rendering engine can parse these during drawing, and can sometimes optimize its performance (e.g. disabling an expensive feature).

Member Enumeration Documentation

◆ Flags

Enumerator
kUseDeviceIndependentFonts_Flag 

◆ InitType

Enumerator
kLegacyFontHost_InitType 

Constructor & Destructor Documentation

◆ SkSurfaceProps() [1/4]

SkSurfaceProps::SkSurfaceProps ( uint32_t  flags,
SkPixelGeometry   
)

◆ SkSurfaceProps() [2/4]

SkSurfaceProps::SkSurfaceProps ( InitType  )

◆ SkSurfaceProps() [3/4]

SkSurfaceProps::SkSurfaceProps ( uint32_t  flags,
InitType   
)

◆ SkSurfaceProps() [4/4]

SkSurfaceProps::SkSurfaceProps ( const SkSurfaceProps )

Member Function Documentation

◆ flags()

uint32_t SkSurfaceProps::flags ( ) const
inline

◆ isUseDeviceIndependentFonts()

bool SkSurfaceProps::isUseDeviceIndependentFonts ( ) const
inline

◆ operator!=()

bool SkSurfaceProps::operator!= ( const SkSurfaceProps that) const
inline

◆ operator=()

SkSurfaceProps& SkSurfaceProps::operator= ( const SkSurfaceProps )

◆ operator==()

bool SkSurfaceProps::operator== ( const SkSurfaceProps that) const
inline

◆ pixelGeometry()

SkPixelGeometry SkSurfaceProps::pixelGeometry ( ) const
inline

Member Data Documentation

◆ kUseDistanceFieldFonts_Flag

const Flags SkSurfaceProps::kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_Flag
static

Deprecated alias used by Chromium.

Will be removed.


The documentation for this class was generated from the following file: