Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Enumerations | Functions
SkFont_serial.cpp File Reference
#include "include/core/SkFont.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTo.h"
#include "src/core/SkFontPriv.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include <cstdint>

Go to the source code of this file.

Enumerations

enum  {
  kSize_Is_Byte_Bit = 1 << 31 , kHas_ScaleX_Bit = 1 << 30 , kHas_SkewX_Bit = 1 << 29 , kHas_Typeface_Bit = 1 << 28 ,
  kShift_for_Size = 16 , kMask_For_Size = 0xFF , kShift_For_Flags = 4 , kMask_For_Flags = 0xFFF ,
  kShift_For_Edging = 2 , kMask_For_Edging = 0x3 , kShift_For_Hinting = 0 , kMask_For_Hinting = 0x3
}
 

Functions

static bool scalar_is_byte (SkScalar x)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSize_Is_Byte_Bit 
kHas_ScaleX_Bit 
kHas_SkewX_Bit 
kHas_Typeface_Bit 
kShift_for_Size 
kMask_For_Size 
kShift_For_Flags 
kMask_For_Flags 
kShift_For_Edging 
kMask_For_Edging 
kShift_For_Hinting 
kMask_For_Hinting 

Definition at line 24 of file SkFont_serial.cpp.

24 {
25 kSize_Is_Byte_Bit = 1 << 31,
26 kHas_ScaleX_Bit = 1 << 30,
27 kHas_SkewX_Bit = 1 << 29,
28 kHas_Typeface_Bit = 1 << 28,
29
30 kShift_for_Size = 16,
31 kMask_For_Size = 0xFF,
32
34 kMask_For_Flags = 0xFFF,
35
37 kMask_For_Edging = 0x3,
38
41};
@ kHas_ScaleX_Bit
@ kHas_Typeface_Bit
@ kMask_For_Hinting
@ kShift_For_Flags
@ kMask_For_Size
@ kShift_For_Edging
@ kSize_Is_Byte_Bit
@ kHas_SkewX_Bit
@ kMask_For_Edging
@ kShift_for_Size
@ kShift_For_Hinting
@ kMask_For_Flags

Function Documentation

◆ scalar_is_byte()

static bool scalar_is_byte ( SkScalar  x)
static

Definition at line 43 of file SkFont_serial.cpp.

43 {
44 int ix = (int)x;
45 return ix == x && ix >= 0 && ix <= kMask_For_Size;
46}
Type::kYUV Type::kRGBA() int(0.7 *637)
double x