Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
12
13static 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 }
21}
22
23#endif // SkDebugUtils_DEFINED
#define SkUNREACHABLE
Definition SkAssert.h:135
static constexpr const char * SkTileModeToStr(SkTileMode tm)
SkTileMode
Definition SkTileMode.h:13