Changeset 63526 in webkit


Ignore:
Timestamp:
Jul 16, 2010 12:12:28 AM (14 years ago)
Author:
hamaji@chromium.org
Message:

2010-07-16 Shinichiro Hamaji <hamaji@chromium.org>

Unreviewed tiger build fix.

Printing test results differ between machines, we should use ImageDiff instead
https://bugs.webkit.org/show_bug.cgi?id=20011

  • DumpRenderTree/mac/PixelDumpSupportMac.mm: (createBitmapContext): (createBitmapContextFromWebView):
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r63525 r63526  
     12010-07-16  Shinichiro Hamaji  <hamaji@chromium.org>
     2
     3        Unreviewed tiger build fix.
     4
     5        Printing test results differ between machines, we should use ImageDiff instead
     6        https://bugs.webkit.org/show_bug.cgi?id=20011
     7
     8        * DumpRenderTree/mac/PixelDumpSupportMac.mm:
     9        (createBitmapContext):
     10        (createBitmapContextFromWebView):
     11
    1122010-07-15  Shinichiro Hamaji  <hamaji@chromium.org>
    213
  • trunk/WebKitTools/DumpRenderTree/mac/PixelDumpSupportMac.mm

    r63521 r63526  
    106106}
    107107
    108 static PassRefPtr<BitmapContext> createBitmapContext(size_t pixelsWide, size_t pixelsHigh)
    109 {
    110     size_t rowBytes = (4 * pixelsWide + 63) & ~63; // Use a multiple of 64 bytes to improve CG performance
    111 
    112     void *buffer = calloc(pixelsHigh, rowBytes);
     108static PassRefPtr<BitmapContext> createBitmapContext(size_t pixelsWide, size_t pixelsHigh, size_t& rowBytes, void*& buffer)
     109{
     110    rowBytes = (4 * pixelsWide + 63) & ~63; // Use a multiple of 64 bytes to improve CG performance
     111
     112    buffer = calloc(pixelsHigh, rowBytes);
    113113    if (!buffer)
    114114        return 0;
     
    147147    size_t pixelsWide = static_cast<size_t>(webViewSize.width);
    148148    size_t pixelsHigh = static_cast<size_t>(webViewSize.height);
    149     RefPtr<BitmapContext> bitmapContext = createBitmapContext(pixelsWide, pixelsHigh);
     149    size_t rowBytes = 0;
     150    void* buffer = 0;
     151    RefPtr<BitmapContext> bitmapContext = createBitmapContext(pixelsWide, pixelsHigh, rowBytes, buffer);
    150152    if (!bitmapContext)
    151153        return 0;
Note: See TracChangeset for help on using the changeset viewer.