Flutter Engine
The Flutter Engine
Classes | Enumerations | Functions
ColorSpaceBench.cpp File Reference
#include "bench/Benchmark.h"
#include "include/core/SkColorSpace.h"
#include "modules/skcms/skcms.h"
#include "src/core/SkColorSpaceXformSteps.h"
#include "src/core/SkRasterPipeline.h"
#include "src/core/SkRasterPipelineOpContexts.h"
#include "src/core/SkRasterPipelineOpList.h"
#include <functional>

Go to the source code of this file.

Classes

class  ColorSpaceTransformBench
 
class  SkcmsTransformBench
 

Enumerations

enum class  Mode {
  kMultipleImage , kSingleImage , kSingleScanline , kTiled ,
  kRandom
}
 

Functions

static const char * mode_name (Mode m)
 

Enumeration Type Documentation

◆ Mode

enum class Mode
strong
Enumerator
kMultipleImage 
kSingleImage 
kSingleScanline 
kTiled 
kRandom 

Definition at line 18 of file ColorSpaceBench.cpp.

18 {
19 kMultipleImage, // Transforms multiple images via one pipeline. (skcms doesn't support this.)
20 kSingleImage, // Transforms a single image at a time.
21 kSingleScanline, // Transforms an image scanline-by-scanline.
22};
@ kMultipleImage
@ kSingleImage
@ kSingleScanline

Function Documentation

◆ mode_name()

static const char * mode_name ( Mode  m)
static

Definition at line 24 of file ColorSpaceBench.cpp.

24 {
25 switch (m) {
26 case Mode::kMultipleImage: return "MultipleImage";
27 case Mode::kSingleImage: return "SingleImage";
28 case Mode::kSingleScanline: return "SingleScanline";
29 default: SkUNREACHABLE;
30 }
31}
#define SkUNREACHABLE
Definition: SkAssert.h:135