Bug 226343

Summary: Add stub implementation of CA separated portal bits for GraphicsLayer
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, changseok, cmarcelo, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, pdr, sergio, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Sam Weinig 2021-05-27 10:16:14 PDT
Add stub implementation of CA seperated portal bits for GraphicsLayer
Comment 1 Sam Weinig 2021-05-27 10:20:49 PDT
Created attachment 429895 [details]
Patch
Comment 2 Tim Horton 2021-05-27 10:27:45 PDT
Comment on attachment 429895 [details]
Patch

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

> Source/WTF/ChangeLog:3
> +        Add stub implementation of CA seperated portal bits for GraphicsLayer

separated
Comment 3 Sam Weinig 2021-05-27 10:50:32 PDT
Created attachment 429902 [details]
Patch
Comment 4 Tim Horton 2021-05-27 11:15:48 PDT
Comment on attachment 429902 [details]
Patch

Seems OK. Not sure about the -is prefix on the getters, and would be good for smfr to peek.
Comment 5 Simon Fraser (smfr) 2021-05-27 11:17:05 PDT
Comment on attachment 429902 [details]
Patch

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

> Source/WebCore/ChangeLog:8
> +        Plumbs isSeparatedPortal and isDescendentOfSeparatedPortal bits through GraphicsLayer.

Plumbs

> Source/WebCore/platform/graphics/GraphicsLayer.h:406
> +    virtual void setIsDescendentOfSeparatedPortal(bool b) { m_isDescendentOfSeparatedPortal = b; }

Does this need to be exposed? We can compute this internally in GraphicsLayer while flushing.

> Source/WebCore/platform/graphics/GraphicsLayer.h:744
> +    bool m_isSeparatedPortal : 1;

There's some ambiguity here. Does m_isSeparatedPortal being true imply that m_isSeparated is also true?
Comment 6 Sam Weinig 2021-05-27 12:28:49 PDT
(In reply to Simon Fraser (smfr) from comment #5)
> Comment on attachment 429902 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=429902&action=review
> 
> > Source/WebCore/ChangeLog:8
> > +        Plumbs isSeparatedPortal and isDescendentOfSeparatedPortal bits through GraphicsLayer.
> 
> Plumbs
> 
> > Source/WebCore/platform/graphics/GraphicsLayer.h:406
> > +    virtual void setIsDescendentOfSeparatedPortal(bool b) { m_isDescendentOfSeparatedPortal = b; }
> 
> Does this need to be exposed? We can compute this internally in
> GraphicsLayer while flushing.

You are right, probably not.

> 
> > Source/WebCore/platform/graphics/GraphicsLayer.h:744
> > +    bool m_isSeparatedPortal : 1;
> 
> There's some ambiguity here. Does m_isSeparatedPortal being true imply that
> m_isSeparated is also true?

It's currently meant only to be valid when m_isSeparated is true. I don't want to merge it into an enum yet though, as depending on where things go, this may become non-separated requiring.
Comment 7 Sam Weinig 2021-05-27 14:18:31 PDT
Created attachment 429927 [details]
Patch
Comment 8 EWS 2021-05-28 11:54:36 PDT
Committed r278217 (238256@main): <https://commits.webkit.org/238256@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 429927 [details].
Comment 9 Radar WebKit Bug Importer 2021-05-28 11:55:14 PDT
<rdar://problem/78627003>