Bug 238200 - Move TextureMapper member variables, types and code out of GraphicsContextGLANGLE
Summary: Move TextureMapper member variables, types and code out of GraphicsContextGLA...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords: InRadar
Depends on:
Blocks: DMA-BUF
  Show dependency treegraph
 
Reported: 2022-03-22 05:55 PDT by Zan Dobersek
Modified: 2022-03-23 02:05 PDT (History)
11 users (show)

See Also:


Attachments
Patch (15.48 KB, patch)
2022-03-22 05:55 PDT, 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 2022-03-22 05:55:24 PDT
Move TextureMapper member variables, types and code out of GraphicsContextGLANGLE
Comment 1 Zan Dobersek 2022-03-22 05:55:53 PDT
Created attachment 455364 [details]
Patch
Comment 2 Alejandro G. Castro 2022-03-22 06:17:00 PDT
Comment on attachment 455364 [details]
Patch

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

LGTM! Great refactor, just added a small comment.

> Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.h:82
> +#if USE(COORDINATED_GRAPHICS)
> +    GCGLuint m_intermediateTexture { 0 };
> +#endif
> +
> +#if USE(NICOSIA)
> +    std::unique_ptr<Nicosia::GCGLANGLELayer> m_nicosiaLayer;

Could we use remove of of the #ifs here and joing the two code sections?
Comment 3 Zan Dobersek 2022-03-22 06:24:23 PDT
Comment on attachment 455364 [details]
Patch

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

>> Source/WebCore/platform/graphics/texmap/GraphicsContextGLTextureMapperANGLE.h:82
>> +    std::unique_ptr<Nicosia::GCGLANGLELayer> m_nicosiaLayer;
> 
> Could we use remove of of the #ifs here and joing the two code sections?

I'm just moving code around, I'm not making these decisions ATM.
Comment 4 EWS 2022-03-22 07:49:19 PDT
Committed r291616 (248709@main): <https://commits.webkit.org/248709@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 455364 [details].
Comment 5 Radar WebKit Bug Importer 2022-03-22 07:50:18 PDT
<rdar://problem/90635015>
Comment 6 Fujii Hironori 2022-03-22 14:17:45 PDT
Does this change match Kimmo's plan (bug#236769 comment#0)?
Comment 7 Zan Dobersek 2022-03-23 02:05:36 PDT
This one:
> The long-term plan would be to minimise the ifdefs in GraphicsContextGLANGLE.

It doesn't affect others.