Bug 230853

Summary: Build-time optimization: forward declare more things in MediaPlayer.h and HTMLMediaElement.h
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, benjamin, calvaris, cdumez, changseok, cmarcelo, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, hi, jean-yves.avenard, kangil.han, kondapallykalyan, macpherson, menard, mifenton, mkwst, pdr, peng.liu6, philipj, ryuan.choi, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch for landing none

Description Jer Noble 2021-09-27 12:24:31 PDT
Build-time optimization: forward declare more things in MediaPlayer.h and HTMLMediaElement.h
Comment 1 Jer Noble 2021-09-27 12:33:18 PDT
Created attachment 439379 [details]
Patch
Comment 2 Jer Noble 2021-09-27 15:29:06 PDT
Created attachment 439401 [details]
Patch
Comment 3 Eric Carlson 2021-09-27 15:58:29 PDT
Comment on attachment 439401 [details]
Patch

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

r=me once the bots are happy

> Source/WebCore/ChangeLog:73
> +        * html/track/VideoTrackClient.h: Copied from Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp.

Nit: you should probably remove the auto-generated "Copied from Source/WebCore/Modules..." message as it isn't helpful.

> Source/WebCore/ChangeLog:85
> +        * platform/graphics/AudioTrackPrivateClient.h: Copied from Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp.

Ditto.

> Source/WebCore/ChangeLog:94
> +        * platform/graphics/TrackPrivateBaseClient.h: Copied from Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp.

Ditto.

> Source/WebCore/ChangeLog:98
> +        * platform/graphics/VideoTrackPrivateClient.h: Copied from Source/WebCore/Modules/encryptedmedia/legacy/LegacyCDMPrivateClearKey.cpp.

Ditto.
Comment 4 Jer Noble 2021-09-27 16:04:32 PDT
Created attachment 439408 [details]
Patch
Comment 5 Jer Noble 2021-09-27 16:46:20 PDT
Created attachment 439417 [details]
Patch
Comment 6 Jer Noble 2021-09-28 11:16:39 PDT
Created attachment 439497 [details]
Patch

Reverted the change to RefPtr, as other compilers still throw errors for "RefPtr<Foo> foo() { return nullptr ; }" when Foo is forward-declared.
Comment 7 Jer Noble 2021-09-28 15:06:39 PDT
Created attachment 439527 [details]
Patch
Comment 8 Jer Noble 2021-09-29 09:28:24 PDT
Created attachment 439613 [details]
Patch for landing
Comment 9 EWS 2021-09-29 09:29:22 PDT
Tools/Scripts/svn-apply failed to apply attachment 439613 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 10 Jer Noble 2021-09-29 10:34:15 PDT
Created attachment 439622 [details]
Patch for landing
Comment 11 EWS 2021-09-29 11:19:55 PDT
Committed r283237 (242279@main): <https://commits.webkit.org/242279@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 439622 [details].
Comment 12 Radar WebKit Bug Importer 2021-09-29 11:20:24 PDT
<rdar://problem/83680121>