Skip to content
Permalink
Browse files
2010-07-16 Shinichiro Hamaji <hamaji@chromium.org>
        Another uneviewed attempt to fix build.

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

        * DumpRenderTree/mac/PixelDumpSupportMac.mm:
        (createPagedBitmapContext):

Canonical link: https://commits.webkit.org/54367@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Shinichiro Hamaji committed Jul 16, 2010
1 parent c76cc25 commit e3eed440826bb5056038beb262ca2ec288d5d23e
Showing 2 changed files with 13 additions and 1 deletion.
@@ -1,3 +1,13 @@
2010-07-16 Shinichiro Hamaji <hamaji@chromium.org>

Another uneviewed attempt to fix build.

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

* DumpRenderTree/mac/PixelDumpSupportMac.mm:
(createPagedBitmapContext):

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

Unreviewed tiger build fix.
@@ -270,8 +270,10 @@ void setupMainDisplayColorProfile()
int pageWidthInPixels = LayoutTestController::maxViewWidth;
int pageHeightInPixels = LayoutTestController::maxViewHeight;
int numberOfPages = [mainFrame numberOfPages:pageWidthInPixels:pageHeightInPixels];
size_t rowBytes = 0;
void* buffer = 0;

RefPtr<BitmapContext> bitmapContext = createBitmapContext(pageWidthInPixels, numberOfPages * (pageHeightInPixels + 1) - 1);
RefPtr<BitmapContext> bitmapContext = createBitmapContext(pageWidthInPixels, numberOfPages * (pageHeightInPixels + 1) - 1, rowBytes, buffer);
[mainFrame printToCGContext:bitmapContext->cgContext():pageWidthInPixels:pageHeightInPixels];
return bitmapContext.release();
}

0 comments on commit e3eed44

Please sign in to comment.