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

Unified Diff: Source/platform/image-decoders/png/PNGImageDecoder.cpp

Issue 797923002: Remove comments from the PNG callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/image-decoders/png/PNGImageDecoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/image-decoders/png/PNGImageDecoder.cpp
diff --git a/Source/platform/image-decoders/png/PNGImageDecoder.cpp b/Source/platform/image-decoders/png/PNGImageDecoder.cpp
index a3b8e76dfeab6870b125582d8c0c33ef6f84f235..a905d61506cce1cc33b51a066d482d40c233e8ba 100644
--- a/Source/platform/image-decoders/png/PNGImageDecoder.cpp
+++ b/Source/platform/image-decoders/png/PNGImageDecoder.cpp
@@ -63,25 +63,21 @@ inline blink::PNGImageDecoder* imageDecoder(png_structp png)
return static_cast<blink::PNGImageDecoder*>(png_get_progressive_ptr(png));
}
-// Called when image header information is available (including the size).
void PNGAPI pngHeaderAvailable(png_structp png, png_infop)
{
imageDecoder(png)->headerAvailable();
}
-// Called when a decoded row is ready.
-void PNGAPI pngRowAvailable(png_structp png, png_bytep rowBuffer, png_uint_32 rowIndex, int interlacePass)
+void PNGAPI pngRowAvailable(png_structp png, png_bytep row, png_uint_32 rowIndex, int state)
{
- imageDecoder(png)->rowAvailable(rowBuffer, rowIndex, interlacePass);
+ imageDecoder(png)->rowAvailable(row, rowIndex, state);
}
-// Called when decoding completes.
void PNGAPI pngComplete(png_structp png, png_infop)
{
imageDecoder(png)->complete();
}
-// Called when decoding fails.
void PNGAPI pngFailed(png_structp png, png_const_charp)
{
longjmp(JMPBUF(png), 1);
« no previous file with comments | « Source/platform/image-decoders/png/PNGImageDecoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698