Flutter Engine
The Flutter Engine
Classes | Functions | Variables
SkParseColor.cpp File Reference
#include "include/utils/SkParse.h"
#include "include/core/SkColor.h"
#include "include/core/SkTypes.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <iterator>

Go to the source code of this file.

Classes

struct  ColorRec
 

Functions

static unsigned nib2byte (unsigned n)
 

Variables

static constexpr const char * gColorNames []
 
static constexpr struct ColorRec gColors []
 

Function Documentation

◆ nib2byte()

static unsigned nib2byte ( unsigned  n)
inlinestatic

Definition at line 343 of file SkParseColor.cpp.

344{
345 SkASSERT((n & ~0xF) == 0);
346 return (n << 4) | n;
347}
#define SkASSERT(cond)
Definition: SkAssert.h:116

Variable Documentation

◆ gColorNames

constexpr const char* gColorNames[]
staticconstexpr

Definition at line 18 of file SkParseColor.cpp.

◆ gColors

constexpr struct ColorRec gColors[]
static