sk_tool_utils -> ToolUtils, and git clang-format
sk_tool_utils doesn't really fit the naming convention
the rest of code under tools/ tends to use.
Change-Id: I45326a174101c6eb4b6149e9c742f658f2fd23b1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/202313
Auto-Submit: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/dm/DM.cpp b/dm/DM.cpp
index fd1409a..8ca0de9 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -40,8 +40,8 @@
#include "SkTypeface_win.h"
#include "Test.h"
#include "TestFontMgr.h"
+#include "ToolUtils.h"
#include "ios_utils.h"
-#include "sk_tool_utils.h"
#include <vector>
@@ -1401,8 +1401,8 @@
if (bitmap) {
result.gamut = identify_gamut (bitmap->colorSpace());
result.transferFn = identify_transfer_fn (bitmap->colorSpace());
- result.colorType = sk_tool_utils::colortype_name(bitmap->colorType ());
- result.alphaType = sk_tool_utils::alphatype_name(bitmap->alphaType ());
+ result.colorType = ToolUtils::colortype_name(bitmap->colorType());
+ result.alphaType = ToolUtils::alphatype_name(bitmap->alphaType());
result.colorDepth = color_depth (bitmap->colorType());
}
JsonWriter::AddBitmapResult(result);
@@ -1518,7 +1518,7 @@
CommandLineFlags::Parse(argc, argv);
if (!FLAGS_nativeFonts) {
- gSkFontMgr_DefaultFactory = &sk_tool_utils::MakePortableFontMgr;
+ gSkFontMgr_DefaultFactory = &ToolUtils::MakePortableFontMgr;
}
#if defined(SK_BUILD_FOR_WIN)