Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: tools/sk_tool_utils.h

Issue 348623006: Add GYP target for sk_tool_utils.* component. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tools.gyp Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/tools.gyp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef sk_tool_utils_DEFINED 8 #ifndef sk_tool_utils_DEFINED
9 #define sk_tool_utils_DEFINED 9 #define sk_tool_utils_DEFINED
10 10
11 #include "SkCanvas.h" 11 #include "SkImageInfo.h"
12 #include "SkBitmap.h" 12
13 class SkBitmap;
14 class SkCanvas;
13 15
14 namespace sk_tool_utils { 16 namespace sk_tool_utils {
15 17
16 const char* colortype_name(SkColorType); 18 const char* colortype_name(SkColorType);
17 19
18 /** 20 /**
19 * Call canvas->writePixels() by using the pixels from bitmap, but with an info that claims 21 * Call canvas->writePixels() by using the pixels from bitmap, but with an info that claims
20 * the pixels are colorType + alphaType 22 * the pixels are colorType + alphaType
21 */ 23 */
22 void write_pixels(SkCanvas*, const SkBitmap&, int x, int y, SkColorType, SkA lphaType); 24 void write_pixels(SkCanvas*, const SkBitmap&, int x, int y, SkColorType, SkA lphaType);
23 }
24 25
25 #endif 26 } // namespace sk_tool_utils
27
28 #endif // sk_tool_utils_DEFINED
OLDNEW
« no previous file with comments | « gyp/tools.gyp ('k') | tools/sk_tool_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698