Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
DrawOptions Struct Reference

#include <fiddle_main.h>

Public Member Functions

 DrawOptions (int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, bool textOnly, const char *s, skgpu::Mipmapped mipMapping, int offScreenWidth, int offScreenHeight, int deprecated, skgpu::Mipmapped offScreenMipMapping)
 

Public Attributes

SkISize size
 
bool raster
 
bool gpu
 
bool pdf
 
bool skp
 
bool srgb
 
bool f16
 
bool textOnly
 
const char * source
 
skgpu::Mipmapped fMipMapping
 
int fOffScreenWidth
 
int fOffScreenHeight
 
skgpu::Mipmapped fOffScreenMipMapping
 

Detailed Description

Definition at line 40 of file fiddle_main.h.

Constructor & Destructor Documentation

◆ DrawOptions()

DrawOptions::DrawOptions ( int  w,
int  h,
bool  r,
bool  g,
bool  p,
bool  k,
bool  srgb,
bool  f16,
bool  textOnly,
const char *  s,
skgpu::Mipmapped  mipMapping,
int  offScreenWidth,
int  offScreenHeight,
int  deprecated,
skgpu::Mipmapped  offScreenMipMapping 
)
inline

Definition at line 41 of file fiddle_main.h.

57 , raster(r)
58 , gpu(g)
59 , pdf(p)
60 , skp(k)
61 , srgb(srgb)
62 , f16(f16)
64 , source(s)
65 , fMipMapping(mipMapping)
66 , fOffScreenWidth(offScreenWidth)
67 , fOffScreenHeight(offScreenHeight)
68 , fOffScreenMipMapping(offScreenMipMapping) {
69 // F16 mode is only valid for color correct backends.
70 SkASSERT(srgb || !f16);
71 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
struct MyStruct s
SkScalar w
SkScalar h
int fOffScreenWidth
Definition: fiddle_main.h:89
skgpu::Mipmapped fOffScreenMipMapping
Definition: fiddle_main.h:93
const char * source
Definition: fiddle_main.h:80
SkISize size
Definition: fiddle_main.h:72
skgpu::Mipmapped fMipMapping
Definition: fiddle_main.h:86
int fOffScreenHeight
Definition: fiddle_main.h:90
bool textOnly
Definition: fiddle_main.h:79
static constexpr SkISize Make(int32_t w, int32_t h)
Definition: SkSize.h:20

Member Data Documentation

◆ f16

bool DrawOptions::f16

Definition at line 78 of file fiddle_main.h.

◆ fMipMapping

skgpu::Mipmapped DrawOptions::fMipMapping

Definition at line 86 of file fiddle_main.h.

◆ fOffScreenHeight

int DrawOptions::fOffScreenHeight

Definition at line 90 of file fiddle_main.h.

◆ fOffScreenMipMapping

skgpu::Mipmapped DrawOptions::fOffScreenMipMapping

Definition at line 93 of file fiddle_main.h.

◆ fOffScreenWidth

int DrawOptions::fOffScreenWidth

Definition at line 89 of file fiddle_main.h.

◆ gpu

bool DrawOptions::gpu

Definition at line 74 of file fiddle_main.h.

◆ pdf

bool DrawOptions::pdf

Definition at line 75 of file fiddle_main.h.

◆ raster

bool DrawOptions::raster

Definition at line 73 of file fiddle_main.h.

◆ size

SkISize DrawOptions::size

Definition at line 72 of file fiddle_main.h.

◆ skp

bool DrawOptions::skp

Definition at line 76 of file fiddle_main.h.

◆ source

const char* DrawOptions::source

Definition at line 80 of file fiddle_main.h.

◆ srgb

bool DrawOptions::srgb

Definition at line 77 of file fiddle_main.h.

◆ textOnly

bool DrawOptions::textOnly

Definition at line 79 of file fiddle_main.h.


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