Bug 313217
| Summary: | [GTK][WPE] Skia Compositor: avoid copies when getting the SkImage of a tile | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> |
| Component: | WebKitGTK | Assignee: | Carlos Garcia Campos <cgarcia> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Carlos Garcia Campos
SkSurface::makeImageSnapshot() does a copy-on-write, but when the surface is wrapping an external texture, it always copies because it doesn't know if the texture will be modified externally. We know the texture won't change, so we can use our own cached image wihtout copying.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Garcia Campos
Pull request: https://github.com/WebKit/WebKit/pull/63512
EWS
Committed 311937@main (6961eee0cf14): <https://commits.webkit.org/311937@main>
Reviewed commits have been landed. Closing PR #63512 and removing active labels.