Skip to content
  • tony@chromium.org's avatar
    2011-04-07 Tony Chang <tony@chromium.org> · 39665f62
    tony@chromium.org authored
            Reviewed by Eric Seidel.
    
            update DRT to embed checksums in png files
            https://bugs.webkit.org/show_bug.cgi?id=57871
    
            We insert the bytes for the comment in printPNG rather than at encode
            time because each platform does its own PNG encoding (either using CG
            or cairo).  Putting this in pringPNG avoids having to duplicate this
            code, although it's not as clean as doing it at encoding time.
    
            We insert the comment right after the IHDR chunk of the PNG.
    
            * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
            * DumpRenderTree/CyclicRedundancyCheck.cpp: Added.
            (makeCrcTable): Ported from LayoutTests/fast/canvas/webgl/resources/pnglib.js
            (computeCrc): Ported from LayoutTests/fast/canvas/webgl/resources/pnglib.js
            * DumpRenderTree/CyclicRedundancyCheck.h: Added.
            * DumpRenderTree/PixelDumpSupport.cpp:
            (dumpWebViewAsPixelsAndCompareWithExpected):
            ...
    39665f62