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 SkTileModeToStr(SkTileMode tm)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 } 20 SkUNREACHABLE; 21 } 22 23 #endif // SkDebugUtils_DEFINED 24