-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 274097.14@webkit-2024.2-embargoed (0bfbed0e1d1a). rdar://…
…122181237 Always build a Gradient identifier to enable resource caching https://bugs.webkit.org/show_bug.cgi?id=270480 Reviewed by Said Abou-Hallawa. Gradient is a RenderingResource and it can be cached by DisplayList, however, every resource needs an identifier to be cached and a Gradient can be created withouth an identifier. This patch prevents Gradients without identifiers from being cached. * LayoutTests/TestExpectations: * LayoutTests/ipc/send-gradient-expected.txt: Added. * LayoutTests/ipc/send-gradient.html: Added. * Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp: (WebKit::RemoteRenderingBackend::cacheGradient): Canonical link: https://commits.webkit.org/274097.14@webkit-2024.2-embargoed Canonical link: https://commits.webkit.org/272448.881@safari-7618-branch
- Loading branch information
1 parent
beb97ad
commit 638de89
Showing
5 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ IPCTestingAPIEnabled=true ] --> | ||
<body> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText() | ||
|
||
if (window.IPC) { | ||
[streamConnection, streamConnectionHandle] = IPC.createStreamClientConnection(14); | ||
streamConnection.open(); | ||
IPC.sendMessage( | ||
'GPU', | ||
0, | ||
IPC.messages.GPUConnectionToWebProcess_CreateRenderingBackend.name, | ||
[ | ||
{type: 'uint64_t', value: 1872}, | ||
{type: 'uint64_t', value: IPC.webPageProxyID}, | ||
{type: 'uint64_t', value: IPC.pageID}, | ||
{type: 'StreamServerConnectionHandle', value: streamConnectionHandle} | ||
] | ||
); | ||
streamConnection.sendMessage( | ||
1872, | ||
IPC.messages.RemoteRenderingBackend_CacheGradient.name, | ||
0.1, | ||
[ | ||
{type: 'uint8_t',value: 1}, | ||
{type: 'float',value: 20.91822109052055}, | ||
{type: 'float',value: 199.65170247825378}, | ||
{type: 'float',value: -631}, | ||
{type: 'float',value: 870.2870187910883}, | ||
{type: 'float',value: 4238675097}, | ||
{type: 'float',value: -671}, | ||
{type: 'float',value: 613}, | ||
{type: 'uint8_t',value: 6}, | ||
{type: 'uint8_t',value: 1}, | ||
{type: 'uint8_t',value: 1}, | ||
{type: 'Vector',value: | ||
[ | ||
[ | ||
{type: 'float',value: 4167777921}, | ||
{type: 'bool',value: 0} | ||
], | ||
[ | ||
{type: 'float',value: 864.3565721604522}, | ||
{type: 'bool',value: 1}, | ||
{type: 'bool',value: 1}, | ||
{type: 'bool',value: 0}, | ||
{type: 'uint8_t',value: 0}, | ||
{type: 'uint32_t',value: 1022} | ||
] | ||
] | ||
}, | ||
{type: 'bool',value: 0} | ||
] | ||
); | ||
} else { | ||
testRunner.notifyDone(); | ||
} | ||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters