Bug 182466 - [Cairo] Correctly calculate stride in GraphicsContext3D::paintToCanvas()
Summary: [Cairo] Correctly calculate stride in GraphicsContext3D::paintToCanvas()
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-02-04 01:36 PST by Zan Dobersek
Modified: 2018-02-05 02:24 PST (History)
6 users (show)

See Also:


Attachments
Patch (1.99 KB, patch)
2018-02-04 01:40 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2018-02-04 01:36:49 PST
[Cairo] Correctly calculate stride in GraphicsContext3D::paintToCanvas()
Comment 1 Zan Dobersek 2018-02-04 01:40:44 PST
Created attachment 333049 [details]
Patch
Comment 2 Zan Dobersek 2018-02-04 23:38:11 PST
Comment on attachment 333049 [details]
Patch

Clearing flags on attachment: 333049

Committed r228085: <https://trac.webkit.org/changeset/228085>
Comment 3 Zan Dobersek 2018-02-04 23:38:16 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2018-02-04 23:39:24 PST
<rdar://problem/37226268>
Comment 5 Zan Dobersek 2018-02-05 02:19:00 PST
Reverted r228085 for reason:

Pixel data stride is imposed by OpenGL and shouldn't be adjusted for Cairo

Committed r228091: <https://trac.webkit.org/changeset/228091>
Comment 6 Zan Dobersek 2018-02-05 02:24:45 PST
(In reply to Zan Dobersek from comment #5)
> Reverted r228085 for reason:
> 
> Pixel data stride is imposed by OpenGL and shouldn't be adjusted for Cairo
> 

I.e., this isn't data we're providing like we do in ImageBufferCairo, but instead it's data that's filled out by OpenGL via glReadPixels(), and that has the prescribed stride that matches width multiplied by 4 bytes (RGBA format, 1 byte per each component).