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

Side by Side Diff: tools/picture_utils.h

Issue 339493004: Minor cleanups in picture_utils header file. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | no next file » | 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 2012 Google Inc. 2 * Copyright 2012 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 picture_utils_DEFINED 8 #ifndef picture_utils_DEFINED
9 #define picture_utils_DEFINED 9 #define picture_utils_DEFINED
10 10
11 #include "SkTypes.h"
12
13 class SkBitmap; 11 class SkBitmap;
14 class SkFILEStream;
15 class SkPicture;
16 class SkString; 12 class SkString;
17 13
18 namespace sk_tools { 14 namespace sk_tools {
19 // since PNG insists on unpremultiplying our alpha, we take no precision 15 // since PNG insists on unpremultiplying our alpha, we take no precision
20 // chances and force all pixels to be 100% opaque, otherwise on compare we 16 // chances and force all pixels to be 100% opaque, otherwise on compare we
21 // may not get a perfect match. 17 // may not get a perfect match.
22 // 18 //
23 // This expects a bitmap with a config type of 8888 and for the pixels to 19 // This expects a bitmap with a config type of 8888 and for the pixels to
24 // not be on the GPU. 20 // not be on the GPU.
25 void force_all_opaque(const SkBitmap& bitmap); 21 void force_all_opaque(const SkBitmap& bitmap);
(...skipping 25 matching lines...) Expand all
51 * @param baseName last part of the filename 47 * @param baseName last part of the filename
52 * 48 *
53 * @return true if written out successfully 49 * @return true if written out successfully
54 */ 50 */
55 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath, 51 bool write_bitmap_to_disk(const SkBitmap& bm, const SkString& dirPath,
56 const char *subdirOrNull, const SkString& baseName ); 52 const char *subdirOrNull, const SkString& baseName );
57 53
58 } // namespace sk_tools 54 } // namespace sk_tools
59 55
60 #endif // picture_utils_DEFINED 56 #endif // picture_utils_DEFINED
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698