aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_tool_utils.h
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.h
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.h')
-rw-r--r--tools/sk_tool_utils.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/sk_tool_utils.h b/tools/sk_tool_utils.h
index 48fd716342..2bd42b6076 100644
--- a/tools/sk_tool_utils.h
+++ b/tools/sk_tool_utils.h
@@ -8,8 +8,10 @@
#ifndef sk_tool_utils_DEFINED
#define sk_tool_utils_DEFINED
-#include "SkCanvas.h"
-#include "SkBitmap.h"
+#include "SkImageInfo.h"
+
+class SkBitmap;
+class SkCanvas;
namespace sk_tool_utils {
@@ -20,6 +22,7 @@ namespace sk_tool_utils {
* the pixels are colorType + alphaType
*/
void write_pixels(SkCanvas*, const SkBitmap&, int x, int y, SkColorType, SkAlphaType);
-}
-#endif
+} // namespace sk_tool_utils
+
+#endif // sk_tool_utils_DEFINED