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: src/core/SkDistanceFieldGen.h

Issue 798723002: More win64 warning fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@size_t
Patch Set: off_t is signed Created 6 years 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 | « src/core/SkDebug.cpp ('k') | src/core/SkDistanceFieldGen.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 #ifndef SkDistanceFieldGen_DEFINED 7 #ifndef SkDistanceFieldGen_DEFINED
8 #define SkDistanceFieldGen_DEFINED 8 #define SkDistanceFieldGen_DEFINED
9 9
10 #include "SkTypes.h" 10 #include "SkTypes.h"
(...skipping 17 matching lines...) Expand all
28 28
29 * @param distanceField The distance field to be generated. Should already be allocated 29 * @param distanceField The distance field to be generated. Should already be allocated
30 * by the client with the padding above. 30 * by the client with the padding above.
31 * @param image 8-bit mask we're using to generate the distance fie ld. 31 * @param image 8-bit mask we're using to generate the distance fie ld.
32 * @param w Width of the original image. 32 * @param w Width of the original image.
33 * @param h Height of the original image. 33 * @param h Height of the original image.
34 * @param rowBytes Size of each row in the image, in bytes 34 * @param rowBytes Size of each row in the image, in bytes
35 */ 35 */
36 bool SkGenerateDistanceFieldFromA8Image(unsigned char* distanceField, 36 bool SkGenerateDistanceFieldFromA8Image(unsigned char* distanceField,
37 const unsigned char* image, 37 const unsigned char* image,
38 int w, int h, int rowBytes); 38 int w, int h, size_t rowBytes);
39 39
40 /** Given 1-bit mask data, generate the associated distance field 40 /** Given 1-bit mask data, generate the associated distance field
41 41
42 * @param distanceField The distance field to be generated. Should already be allocated 42 * @param distanceField The distance field to be generated. Should already be allocated
43 * by the client with the padding above. 43 * by the client with the padding above.
44 * @param image 1-bit mask we're using to generate the distance fie ld. 44 * @param image 1-bit mask we're using to generate the distance fie ld.
45 * @param w Width of the original image. 45 * @param w Width of the original image.
46 * @param h Height of the original image. 46 * @param h Height of the original image.
47 * @param rowBytes Size of each row in the image, in bytes 47 * @param rowBytes Size of each row in the image, in bytes
48 */ 48 */
49 bool SkGenerateDistanceFieldFromBWImage(unsigned char* distanceField, 49 bool SkGenerateDistanceFieldFromBWImage(unsigned char* distanceField,
50 const unsigned char* image, 50 const unsigned char* image,
51 int w, int h, int rowBytes); 51 int w, int h, size_t rowBytes);
52 52
53 /** Given width and height of original image, return size (in bytes) of distance field 53 /** Given width and height of original image, return size (in bytes) of distance field
54 * @param w Width of the original image. 54 * @param w Width of the original image.
55 * @param h Height of the original image. 55 * @param h Height of the original image.
56 */ 56 */
57 inline size_t SkComputeDistanceFieldSize(int w, int h) { 57 inline size_t SkComputeDistanceFieldSize(int w, int h) {
58 return (w + 2*SK_DistanceFieldPad) * (h + 2*SK_DistanceFieldPad) * sizeof(un signed char); 58 return (w + 2*SK_DistanceFieldPad) * (h + 2*SK_DistanceFieldPad) * sizeof(un signed char);
59 } 59 }
60 60
61 #endif 61 #endif
OLDNEW
« no previous file with comments | « src/core/SkDebug.cpp ('k') | src/core/SkDistanceFieldGen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698