Summary: | [Chromium] Eliminate redundant data copy in GraphicsContext3D readback | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kenneth Russell <kbr> | ||||
Component: | WebGL | Assignee: | Kenneth Russell <kbr> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | brettw, commit-queue, dglazkov, fishd, petersont, rlp, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Kenneth Russell
2009-12-18 18:56:37 PST
Created attachment 45219 [details]
Patch
Eliminated useless creation of a CGBitmapContext and from there a CGImage. Now create CGImage directly from data. Also changed readPixels parameters and CGImage alpha info to try to avoid byte swapping, and disabled interpolation when drawing the GL content. Some test cases run twice as fast with these changes, though more work is needed to achieve desired performance.
No test case; performance optimization only. Ran WebGL demos from Khronos site to verify changes.
style-queue ran check-webkit-style on attachment 45219 [details] without any errors.
Comment on attachment 45219 [details] Patch Clearing flags on attachment: 45219 Committed r52380: <http://trac.webkit.org/changeset/52380> All reviewed patches have been landed. Closing bug. |