diff options
author | 2014-06-21 10:54:17 -0700 | |
---|---|---|
committer | 2014-06-21 10:54:17 -0700 | |
commit | 2010891425f10257363ae6eb0da70453746dc087 (patch) | |
tree | a47622a715cda1e06a4df631875b81ae93e40e92 /tools/sk_tool_utils.cpp | |
parent | 4856ac9a4dd340ee255a961a6ca64214582d59dd (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.cpp | 12 |
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 |