aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_tool_utils.cpp
diff options
context:
space:
mode:
authorGravatar tfarina <tfarina@chromium.org>2014-06-21 10:54:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-21 10:54:17 -0700
commit2010891425f10257363ae6eb0da70453746dc087 (patch)
treea47622a715cda1e06a4df631875b81ae93e40e92 /tools/sk_tool_utils.cpp
parent4856ac9a4dd340ee255a961a6ca64214582d59dd (diff)
Add GYP target for sk_tool_utils.* component.
This declares a static library target in gyp/sk_tool_utils.gyp, so other targets can depend directly on it instead of including the source file in their source lists. BUG=None TEST=make all R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/348623006
Diffstat (limited to 'tools/sk_tool_utils.cpp')
-rw-r--r--tools/sk_tool_utils.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index 3eb55554b6..c75c496a89 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -1,5 +1,15 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
#include "sk_tool_utils.h"
+#include "SkBitmap.h"
+#include "SkCanvas.h"
+
namespace sk_tool_utils {
const char* colortype_name(SkColorType ct) {
@@ -29,4 +39,4 @@ void write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y,
canvas->writePixels(info, tmp.getPixels(), tmp.rowBytes(), x, y);
}
-}
+} // namespace sk_tool_utils