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

Unified Diff: ui/gfx/codec/png_codec.cc

Issue 396133002: ui/gfx: cleanup: change a function name for readability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/codec/png_codec.cc
diff --git a/ui/gfx/codec/png_codec.cc b/ui/gfx/codec/png_codec.cc
index 645f1858093e35863e3228f4e62f93bc5809c973..068a193b334cb7317a4a7eff673c7b4336bb0475 100644
--- a/ui/gfx/codec/png_codec.cc
+++ b/ui/gfx/codec/png_codec.cc
@@ -37,7 +37,7 @@ void ConvertRGBAtoRGB(const unsigned char* rgba, int pixel_width,
memcpy(&rgb[x * 3], &rgba[x * 4], 3);
}
-void ConvertSkiatoRGB(const unsigned char* skia, int pixel_width,
+void ConvertSkiaToRGB(const unsigned char* skia, int pixel_width,
unsigned char* rgb, bool* is_opaque) {
for (int x = 0; x < pixel_width; x++) {
const uint32_t pixel_in = *reinterpret_cast<const uint32_t*>(&skia[x * 4]);
@@ -57,7 +57,7 @@ void ConvertSkiatoRGB(const unsigned char* skia, int pixel_width,
}
}
-void ConvertSkiatoRGBA(const unsigned char* skia, int pixel_width,
+void ConvertSkiaToRGBA(const unsigned char* skia, int pixel_width,
unsigned char* rgba, bool* is_opaque) {
gfx::ConvertSkiaToRGBA(skia, pixel_width, rgba);
}
@@ -688,11 +688,11 @@ bool EncodeWithCompressionLevel(const unsigned char* input,
if (discard_transparency) {
output_color_components = 3;
png_output_color_type = PNG_COLOR_TYPE_RGB;
- converter = ConvertSkiatoRGB;
+ converter = ConvertSkiaToRGB;
} else {
output_color_components = 4;
png_output_color_type = PNG_COLOR_TYPE_RGB_ALPHA;
- converter = ConvertSkiatoRGBA;
+ converter = ConvertSkiaToRGBA;
}
}
break;
« 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