Title: [277034] trunk/Source/WebKit
- Revision
- 277034
- Author
- [email protected]
- Date
- 2021-05-05 12:08:29 -0700 (Wed, 05 May 2021)
Log Message
Separated layers need to be configured
https://bugs.webkit.org/show_bug.cgi?id=225378
Reviewed by Tim Horton.
Configure a layer as it becomes separated. The actual code will
come from WebKitAdditions.
* Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm:
(configureSeparatedLayer):
(WebKit::RemoteLayerTreePropertyApplier::applyPropertiesToLayer):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (277033 => 277034)
--- trunk/Source/WebKit/ChangeLog 2021-05-05 18:47:05 UTC (rev 277033)
+++ trunk/Source/WebKit/ChangeLog 2021-05-05 19:08:29 UTC (rev 277034)
@@ -1,3 +1,17 @@
+2021-05-05 Dean Jackson <[email protected]>
+
+ Separated layers need to be configured
+ https://bugs.webkit.org/show_bug.cgi?id=225378
+
+ Reviewed by Tim Horton.
+
+ Configure a layer as it becomes separated. The actual code will
+ come from WebKitAdditions.
+
+ * Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm:
+ (configureSeparatedLayer):
+ (WebKit::RemoteLayerTreePropertyApplier::applyPropertiesToLayer):
+
2021-05-05 Tim Horton <[email protected]>
Add and adopt RemoteLayerBackingStore::Type (instead of "accelerates drawing" bit)
Modified: trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm (277033 => 277034)
--- trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm 2021-05-05 18:47:05 UTC (rev 277033)
+++ trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm 2021-05-05 19:08:29 UTC (rev 277034)
@@ -37,6 +37,14 @@
#import <wtf/BlockObjCExceptions.h>
#import <wtf/cocoa/VectorCocoa.h>
+#if HAVE(CORE_ANIMATION_SEPARATED_LAYERS)
+#if USE(APPLE_INTERNAL_SDK)
+#import <WebKitAdditions/SeparatedLayerAdditions.h>
+#else
+static void configureSeparatedLayer(CALayer *) { }
+#endif
+#endif
+
#if PLATFORM(IOS_FAMILY)
#import <UIKit/UIView.h>
#import <UIKitSPI.h>
@@ -267,8 +275,11 @@
updateCustomAppearance(layer, properties.customAppearance);
#if HAVE(CORE_ANIMATION_SEPARATED_LAYERS)
- if (properties.changedProperties & RemoteLayerTreeTransaction::SeparatedChanged)
+ if (properties.changedProperties & RemoteLayerTreeTransaction::SeparatedChanged) {
layer.separated = properties.isSeparated;
+ if (properties.isSeparated)
+ configureSeparatedLayer(layer);
+ }
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes