Flutter Engine
The Flutter Engine
Classes | Enumerations | Functions
SkSurfaceProps.h File Reference
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTo.h"

Go to the source code of this file.

Classes

class  SkSurfaceProps
 

Enumerations

enum  SkPixelGeometry {
  kUnknown_SkPixelGeometry , kRGB_H_SkPixelGeometry , kBGR_H_SkPixelGeometry , kRGB_V_SkPixelGeometry ,
  kBGR_V_SkPixelGeometry
}
 

Functions

static bool SkPixelGeometryIsRGB (SkPixelGeometry geo)
 
static bool SkPixelGeometryIsBGR (SkPixelGeometry geo)
 
static bool SkPixelGeometryIsH (SkPixelGeometry geo)
 
static bool SkPixelGeometryIsV (SkPixelGeometry geo)
 

Enumeration Type Documentation

◆ SkPixelGeometry

Description of how the LCD strips are arranged for each pixel. If this is unknown, or the pixels are meant to be "portable" and/or transformed before showing (e.g. rotated, scaled) then use kUnknown_SkPixelGeometry.

Enumerator
kUnknown_SkPixelGeometry 
kRGB_H_SkPixelGeometry 
kBGR_H_SkPixelGeometry 
kRGB_V_SkPixelGeometry 
kBGR_V_SkPixelGeometry 

Definition at line 20 of file SkSurfaceProps.h.

20 {
26};
@ kUnknown_SkPixelGeometry
@ kRGB_V_SkPixelGeometry
@ kBGR_H_SkPixelGeometry
@ kRGB_H_SkPixelGeometry
@ kBGR_V_SkPixelGeometry

Function Documentation

◆ SkPixelGeometryIsBGR()

static bool SkPixelGeometryIsBGR ( SkPixelGeometry  geo)
inlinestatic

Definition at line 34 of file SkSurfaceProps.h.

34 {
35 return kBGR_H_SkPixelGeometry == geo || kBGR_V_SkPixelGeometry == geo;
36}

◆ SkPixelGeometryIsH()

static bool SkPixelGeometryIsH ( SkPixelGeometry  geo)
inlinestatic

Definition at line 39 of file SkSurfaceProps.h.

39 {
40 return kRGB_H_SkPixelGeometry == geo || kBGR_H_SkPixelGeometry == geo;
41}

◆ SkPixelGeometryIsRGB()

static bool SkPixelGeometryIsRGB ( SkPixelGeometry  geo)
inlinestatic

Definition at line 29 of file SkSurfaceProps.h.

29 {
30 return kRGB_H_SkPixelGeometry == geo || kRGB_V_SkPixelGeometry == geo;
31}

◆ SkPixelGeometryIsV()

static bool SkPixelGeometryIsV ( SkPixelGeometry  geo)
inlinestatic

Definition at line 44 of file SkSurfaceProps.h.

44 {
45 return kRGB_V_SkPixelGeometry == geo || kBGR_V_SkPixelGeometry == geo;
46}