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

Unified Diff: Source/platform/image-encoders/skia/JPEGImageEncoder.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp ('k') | Source/platform/text/UnicodeRange.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/image-encoders/skia/JPEGImageEncoder.cpp
diff --git a/Source/platform/image-encoders/skia/JPEGImageEncoder.cpp b/Source/platform/image-encoders/skia/JPEGImageEncoder.cpp
index 866f82d16bd4667a92a23f1a2594a8fb76ebb23e..d258903dafed6ab0b67dd85ab0ef11d453d1f744 100644
--- a/Source/platform/image-encoders/skia/JPEGImageEncoder.cpp
+++ b/Source/platform/image-encoders/skia/JPEGImageEncoder.cpp
@@ -79,7 +79,7 @@ static void handleError(j_common_ptr common)
longjmp(*jumpBufferPtr, -1);
}
-static void preMultipliedBGRAtoRGB(const unsigned char* pixels, unsigned int pixelCount, unsigned char* output)
+static void preMultipliedBGRAtoRGB(const unsigned char* pixels, unsigned pixelCount, unsigned char* output)
{
const SkPMColor* input = reinterpret_cast_ptr<const SkPMColor*>(pixels);
for (; pixelCount-- > 0; ++input) {
@@ -89,7 +89,7 @@ static void preMultipliedBGRAtoRGB(const unsigned char* pixels, unsigned int pix
}
}
-static void RGBAtoRGB(const unsigned char* pixels, unsigned int pixelCount, unsigned char* output)
+static void RGBAtoRGB(const unsigned char* pixels, unsigned pixelCount, unsigned char* output)
{
for (; pixelCount-- > 0; pixels += 4) {
// Do source-over composition on black.
@@ -172,7 +172,7 @@ static bool encodePixels(IntSize imageSize, unsigned char* inputPixels, bool pre
cinfo.in_color_space = JCS_RGB;
cinfo.input_components = 3;
- void (*extractRowRGB)(const unsigned char*, unsigned int, unsigned char* output);
+ void (*extractRowRGB)(const unsigned char*, unsigned, unsigned char* output);
extractRowRGB = &RGBAtoRGB;
if (premultiplied)
extractRowRGB = &preMultipliedBGRAtoRGB;
« no previous file with comments | « Source/platform/image-decoders/jpeg/JPEGImageDecoder.cpp ('k') | Source/platform/text/UnicodeRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698