Bug 89797 - [chromium] Add the workaround of IOSurface-related corruption during readback on Mac OS X.
Summary: [chromium] Add the workaround of IOSurface-related corruption during readback...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 17:10 PDT by Yasuhiro Matsuda
Modified: 2012-06-26 11:01 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.59 KB, patch)
2012-06-22 18:15 PDT, Yasuhiro Matsuda
no flags Details | Formatted Diff | Diff
Patch (2.56 KB, patch)
2012-06-25 14:05 PDT, Yasuhiro Matsuda
no flags Details | Formatted Diff | Diff
Patch (2.50 KB, patch)
2012-06-25 18:29 PDT, Yasuhiro Matsuda
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yasuhiro Matsuda 2012-06-22 17:10:28 PDT
In https://bugs.webkit.org/show_bug.cgi?id=79735, a workaround of IOSurface-related corruption during readback was added for Mac OS X 10.7.
While looking into the thumbnail corruption in Chromium (http://code.google.com/p/chromium/issues/detail?id=132000), it turned out this work around is needed for 10.6.8 as well.
Comment 1 Yasuhiro Matsuda 2012-06-22 18:15:47 PDT
Created attachment 149149 [details]
Patch
Comment 2 James Robinson 2012-06-22 19:30:27 PDT
Comment on attachment 149149 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=149149&action=review

> Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:1368
> +        // On Mac OS X 10.6.8+, calling glReadPixels against an FBO whose color attachment is an

do we know that this is broke from 1.6.7 -> 1.6.8?  Should we just do this unconditionally on mac?
Comment 3 Kenneth Russell 2012-06-23 23:15:11 PDT
Comment on attachment 149149 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=149149&action=review

>> Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp:1368
>> +        // On Mac OS X 10.6.8+, calling glReadPixels against an FBO whose color attachment is an
> 
> do we know that this is broke from 1.6.7 -> 1.6.8?  Should we just do this unconditionally on mac?

I doubt that that is known for sure. Agree, we should just do this on all OS versions now -- it's OK to leave the function needsIOSurfaceReadbackWorkaround, but let's just make it unconditionally return true (IOSurfaces were introduced in 10.6, so it looks like we need the workaround all the time for now, unless we can confirm the issue was fixed in 10.8).
Comment 4 Yasuhiro Matsuda 2012-06-25 14:05:57 PDT
Created attachment 149354 [details]
Patch
Comment 5 James Robinson 2012-06-25 14:06:46 PDT
Comment on attachment 149354 [details]
Patch

R=me
Comment 6 WebKit Review Bot 2012-06-25 18:17:32 PDT
Comment on attachment 149354 [details]
Patch

Rejecting attachment 149354 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
t/git/webkit-commit-queue/Source/WebKit/chromium/v8 --revision 11844 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
47>At revision 11844.

________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'

________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium'
Updating webkit projects from gyp files...

Full output: http://queues.webkit.org/results/13093297
Comment 7 James Robinson 2012-06-25 18:20:52 PDT
Oh, I probably gave you merge conflicts with http://trac.webkit.org/changeset/121204.  Would you mind rebasing your patch and re-uploading?
Comment 8 Yasuhiro Matsuda 2012-06-25 18:29:42 PDT
Created attachment 149418 [details]
Patch
Comment 9 Yasuhiro Matsuda 2012-06-25 18:35:40 PDT
(In reply to comment #7)
> Oh, I probably gave you merge conflicts with http://trac.webkit.org/changeset/121204.  Would you mind rebasing your patch and re-uploading?

Resolved the conflict and uploaded a new patch.
Could you set commit-queue flag again if it looks good?
Comment 10 WebKit Review Bot 2012-06-26 10:57:07 PDT
Comment on attachment 149418 [details]
Patch

Clearing flags on attachment: 149418

Committed r121267: <http://trac.webkit.org/changeset/121267>
Comment 11 WebKit Review Bot 2012-06-26 10:57:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Simon Fraser (smfr) 2012-06-26 10:59:11 PDT
Did you file a radar on the IOSurface issue? What's the radar number?
Comment 13 James Robinson 2012-06-26 11:01:50 PDT
(In reply to comment #12)
> Did you file a radar on the IOSurface issue? What's the radar number?

From the inline comment: "http://crbug.com/99393. <rdar://problem/10949687>"