Bug 226343 - Add stub implementation of CA separated portal bits for GraphicsLayer
Summary: Add stub implementation of CA separated portal bits for GraphicsLayer
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-05-27 10:16 PDT by Sam Weinig
Modified: 2021-05-28 11:55 PDT (History)
14 users (show)

See Also:


Attachments
Patch (28.26 KB, patch)
2021-05-27 10:20 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (28.26 KB, patch)
2021-05-27 10:50 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (29.17 KB, patch)
2021-05-27 14:18 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>