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/gm/tilemodes_scaled.cpp b/gm/tilemodes_scaled.cpp
index 9366927..28e7949 100644
--- a/gm/tilemodes_scaled.cpp
+++ b/gm/tilemodes_scaled.cpp
@@ -4,8 +4,6 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "gm.h"
-#include "sk_tool_utils.h"
#include "SkColorFilter.h"
#include "SkMaskFilter.h"
#include "SkPath.h"
@@ -13,6 +11,8 @@
#include "SkShader.h"
#include "SkTextUtils.h"
#include "SkUTF.h"
+#include "ToolUtils.h"
+#include "gm.h"
// effects
#include "SkGradientShader.h"
@@ -78,7 +78,7 @@
void onDraw(SkCanvas* canvas) override {
SkPaint textPaint;
- SkFont font(sk_tool_utils::create_portable_typeface(), 12);
+ SkFont font(ToolUtils::create_portable_typeface(), 12);
float scale = 32.f/kPOTSize;
@@ -166,7 +166,7 @@
SkPoint pts[] = { { 0, 0 }, { SkIntToScalar(gWidth), SkIntToScalar(gHeight)} };
SkPoint center = { SkIntToScalar(gWidth)/2, SkIntToScalar(gHeight)/2 };
SkScalar rad = SkIntToScalar(gWidth)/2;
- SkColor colors[] = { 0xFFFF0000, sk_tool_utils::color_to_565(0xFF0044FF) };
+ SkColor colors[] = {0xFFFF0000, ToolUtils::color_to_565(0xFF0044FF)};
int index = (int)ty;
switch (index % 3) {
@@ -216,7 +216,7 @@
SkScalar y = SkIntToScalar(24);
SkScalar x = SkIntToScalar(66);
- SkFont font(sk_tool_utils::create_portable_typeface());
+ SkFont font(ToolUtils::create_portable_typeface());
for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) {
SkString str(gModeNames[kx]);