| Summary: | [iOS WebKit2] Flush all surfaces after painting into all of them, instead of after painting into each one | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Horton <thorton> | ||||||||||
| Component: | WebKit2 | Assignee: | Tim Horton <thorton> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | benjamin, commit-queue, sam, simon.fraser | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Bug Depends on: | 130822 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Tim Horton
2014-03-25 23:49:30 PDT
Created attachment 227832 [details]
patch
Re-opened since this is blocked by bug 130822 Created attachment 227934 [details]
patch
I need to double check what happens with clones. Comment on attachment 227934 [details]
patch
Clones are broken.
Created attachment 228210 [details]
patch (will break clones but fix in a follow-up)
Created attachment 228213 [details]
maybe rebase
View in context: https://bugs.webkit.org/attachment.cgi?id=228210&action=review > Source/WebKit2/Shared/mac/RemoteLayerBackingStore.h:46 > class RemoteLayerBackingStore { > + WTF_MAKE_NONCOPYABLE(RemoteLayerBackingStore); How come this is not Fast Allocated? > Source/WebKit2/Shared/mac/RemoteLayerBackingStore.mm:337 > + if (!m_frontContextPendingFlush) > + return; > + > + CGContextFlush(m_frontContextPendingFlush.get()); > + m_frontContextPendingFlush = nullptr; Maybe? if (m_frontContextPendingFlush) { CGContextFlush(m_frontContextPendingFlush.get()); m_frontContextPendingFlush = nullptr; } > Source/WebKit2/Shared/mac/RemoteLayerTreeTransaction.mm:418 > + for (const auto& layer : m_changedLayers) { "auto" sucks here, no way to guess the type. > Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemote.h:154 > + RemoteLayerTreeTransaction::LayerProperties& properties() { return m_properties; } You could have a const version. > Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:310 > + for (auto& layer : transaction.changedLayers()) { auto sucks here too :( Comment on attachment 228213 [details]
maybe rebase
r+ with the comments from the previous patch.
|