Flutter Engine
The Flutter Engine
third_party
skia
src
core
SkDebugUtils.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkDebugUtils_DEFINED
9
#define SkDebugUtils_DEFINED
10
11
#include "
include/core/SkTileMode.h
"
12
13
static
constexpr
const
char
*
SkTileModeToStr
(
SkTileMode
tm) {
14
switch
(tm) {
15
case
SkTileMode::kClamp
:
return
"Clamp"
;
16
case
SkTileMode::kRepeat
:
return
"Repeat"
;
17
case
SkTileMode::kMirror
:
return
"Mirror"
;
18
case
SkTileMode::kDecal
:
return
"Decal"
;
19
}
20
SkUNREACHABLE
;
21
}
22
23
#endif
// SkDebugUtils_DEFINED
SkUNREACHABLE
#define SkUNREACHABLE
Definition:
SkAssert.h:135
SkTileModeToStr
static constexpr const char * SkTileModeToStr(SkTileMode tm)
Definition:
SkDebugUtils.h:13
SkTileMode.h
SkTileMode
SkTileMode
Definition:
SkTileMode.h:13
SkTileMode::kDecal
@ kDecal
SkTileMode::kRepeat
@ kRepeat
SkTileMode::kClamp
@ kClamp
SkTileMode::kMirror
@ kMirror
Generated on Sun Jun 23 2024 21:56:11 for Flutter Engine by
1.9.4