Always use LayerContentsType::IOSurface in minimal simulator mode
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2018 22:13:28 +0000 (22:13 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2018 22:13:28 +0000 (22:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184710

Reviewed by Simon Fraser.

* UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm:
(WebKit::RemoteLayerTreeHost::updateLayerTree):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230730 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm

index 7263217..dfde1f7 100644 (file)
@@ -1,3 +1,13 @@
+2018-04-17  Timothy Hatcher  <timothy@apple.com>
+
+        Always use LayerContentsType::IOSurface in minimal simulator mode
+        https://bugs.webkit.org/show_bug.cgi?id=184710
+
+        Reviewed by Simon Fraser.
+
+        * UIProcess/RemoteLayerTree/RemoteLayerTreeHost.mm:
+        (WebKit::RemoteLayerTreeHost::updateLayerTree):
+
 2018-04-17  Ryosuke Niwa  <rniwa@webkit.org>
 
         Release assert in InjectedBundle::postSynchronousMessage
index ec4b15f..4cf32c3 100644 (file)
@@ -88,7 +88,7 @@ bool RemoteLayerTreeHost::updateLayerTree(const RemoteLayerTreeTransaction& tran
     typedef std::pair<GraphicsLayer::PlatformLayerID, GraphicsLayer::PlatformLayerID> LayerIDPair;
     Vector<LayerIDPair> clonesToUpdate;
 
-#if PLATFORM(MAC)
+#if PLATFORM(MAC) || ENABLE(MINIMAL_SIMULATOR)
     // Can't use the iOS code on macOS yet: rdar://problem/31247730
     auto layerContentsType = RemoteLayerBackingStore::LayerContentsType::IOSurface;
 #else