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 , kDynamicMSAA_Flag = 1 << 1 , kAlwaysDither_Flag = 1 << 2 }
 

Public Member Functions

 SkSurfaceProps ()
 No flags, unknown pixel geometry. More...
 
 SkSurfaceProps (uint32_t flags, SkPixelGeometry)
 
 SkSurfaceProps (const SkSurfaceProps &)=default
 
SkSurfacePropsoperator= (const SkSurfaceProps &)=default
 
SkSurfaceProps cloneWithPixelGeometry (SkPixelGeometry newPixelGeometry) const
 
uint32_t flags () const
 
SkPixelGeometry pixelGeometry () const
 
bool isUseDeviceIndependentFonts () const
 
bool isAlwaysDither () const
 
bool operator== (const SkSurfaceProps &that) const
 
bool operator!= (const SkSurfaceProps &that) const
 

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 
kDynamicMSAA_Flag 
kAlwaysDither_Flag 

Constructor & Destructor Documentation

◆ SkSurfaceProps() [1/3]

SkSurfaceProps::SkSurfaceProps ( )

No flags, unknown pixel geometry.

◆ SkSurfaceProps() [2/3]

SkSurfaceProps::SkSurfaceProps ( uint32_t  flags,
SkPixelGeometry   
)

◆ SkSurfaceProps() [3/3]

SkSurfaceProps::SkSurfaceProps ( const SkSurfaceProps )
default

Member Function Documentation

◆ cloneWithPixelGeometry()

SkSurfaceProps SkSurfaceProps::cloneWithPixelGeometry ( SkPixelGeometry  newPixelGeometry) const
inline

◆ flags()

uint32_t SkSurfaceProps::flags ( ) const
inline

◆ isAlwaysDither()

bool SkSurfaceProps::isAlwaysDither ( ) const
inline

◆ isUseDeviceIndependentFonts()

bool SkSurfaceProps::isUseDeviceIndependentFonts ( ) const
inline

◆ operator!=()

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

◆ operator=()

SkSurfaceProps& SkSurfaceProps::operator= ( const SkSurfaceProps )
default

◆ operator==()

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

◆ pixelGeometry()

SkPixelGeometry SkSurfaceProps::pixelGeometry ( ) const
inline

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