Title: [144217] trunk/Source/WebKit2
Revision
144217
Author
wei...@apple.com
Date
2013-02-27 11:40:54 -0800 (Wed, 27 Feb 2013)

Log Message

REGRESSION: Loading flash switches to discrete graphics, 100 MB on membuster
<rdar://problem/13229828>

Reviewed by Dan Bernstein.

Due the change in CFBundleIdentifier, the WebProcess and PluginProcess were
unnecessarily muxing (they used to be whitelisted by OpenGL) to the discrete
GPU.

* PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
* PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
* PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
* WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
* WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
* WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
Add NSSupportsAutomaticGraphicsSwitching YES.

* WebKit2.xcodeproj/project.pbxproj:
Re-add the PluginService.32-64.Info.plist plist to the project file.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (144216 => 144217)


--- trunk/Source/WebKit2/ChangeLog	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/ChangeLog	2013-02-27 19:40:54 UTC (rev 144217)
@@ -1,3 +1,25 @@
+2013-02-27  Sam Weinig  <s...@webkit.org>
+
+        REGRESSION: Loading flash switches to discrete graphics, 100 MB on membuster
+        <rdar://problem/13229828>
+
+        Reviewed by Dan Bernstein.
+
+        Due the change in CFBundleIdentifier, the WebProcess and PluginProcess were
+        unnecessarily muxing (they used to be whitelisted by OpenGL) to the discrete
+        GPU.
+
+        * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
+        * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
+        * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
+        * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
+        * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
+        * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
+        Add NSSupportsAutomaticGraphicsSwitching YES.
+
+        * WebKit2.xcodeproj/project.pbxproj:
+        Re-add the PluginService.32-64.Info.plist plist to the project file.
+
 2013-02-26  Alexey Proskuryakov  <a...@apple.com>
 
         Don't add a body to platform request until necessary

Modified: trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist (144216 => 144217)


--- trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist	2013-02-27 19:40:54 UTC (rev 144217)
@@ -28,5 +28,7 @@
 	<string>NSApplication</string>
 	<key>WebKitEntryPoint</key>
 	<string>PluginProcessMain</string>
+	<key>NSSupportsAutomaticGraphicsSwitching</key>
+	<true/>
 </dict>
 </plist>

Modified: trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist (144216 => 144217)


--- trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist	2013-02-27 19:40:54 UTC (rev 144217)
@@ -30,6 +30,8 @@
 	<string>PluginServiceInitializer</string>
 	<key>LSUIElement</key>
 	<true/>
+	<key>NSSupportsAutomaticGraphicsSwitching</key>
+	<true/>
 	<key>XPCService</key>
 	<dict>
 		<key>ServiceType</key>

Modified: trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist (144216 => 144217)


--- trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist	2013-02-27 19:40:54 UTC (rev 144217)
@@ -30,6 +30,8 @@
 	<string>PluginServiceInitializer</string>
 	<key>LSUIElement</key>
 	<true/>
+	<key>NSSupportsAutomaticGraphicsSwitching</key>
+	<true/>
 	<key>XPCService</key>
 	<dict>
 		<key>ServiceType</key>

Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (144216 => 144217)


--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj	2013-02-27 19:40:54 UTC (rev 144217)
@@ -2248,8 +2248,6 @@
 		BC8283AB16B4BEAD00A278FE /* NetworkService.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = NetworkService.xcconfig; sourceTree = "<group>"; };
 		BC8283B116B4BF7700A278FE /* com.apple.WebKit.Networking.xpc */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = com.apple.WebKit.Networking.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
 		BC8283C516B4BFA800A278FE /* com.apple.WebKit.Networking.Development.xpc */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = com.apple.WebKit.Networking.Development.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
-		BC8283E416B4F8E200A278FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		BC8283EA16B4F8E200A278FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		BC8283EF16B4F8E200A278FE /* PluginServiceEntryPoint.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = PluginServiceEntryPoint.mm; sourceTree = "<group>"; };
 		BC8283F216B4FC5300A278FE /* PluginService.32.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = PluginService.32.xcconfig; sourceTree = "<group>"; };
 		BC8283F416B4FC5300A278FE /* PluginService.64.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = PluginService.64.xcconfig; sourceTree = "<group>"; };
@@ -2465,6 +2463,7 @@
 		BCF69FA11176D01400471A52 /* WebNavigationData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebNavigationData.cpp; sourceTree = "<group>"; };
 		BCF69FA71176D1CB00471A52 /* WKNavigationData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKNavigationData.h; sourceTree = "<group>"; };
 		BCF69FA81176D1CB00471A52 /* WKNavigationData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKNavigationData.cpp; sourceTree = "<group>"; };
+		BCFCA89516DE96CB00074069 /* PluginService.32-64.Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "PluginService.32-64.Info.plist"; path = "PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist"; sourceTree = SOURCE_ROOT; };
 		BCFD5489132D82680055D816 /* WKErrorCF.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WKErrorCF.cpp; sourceTree = "<group>"; };
 		BCFD548A132D82680055D816 /* WKErrorCF.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKErrorCF.h; sourceTree = "<group>"; };
 		BFA6179E12F0B99D0033E0CA /* WKViewPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WKViewPrivate.h; sourceTree = "<group>"; };
@@ -4447,8 +4446,7 @@
 		BC8283E216B4F8E200A278FE /* XPCService */ = {
 			isa = PBXGroup;
 			children = (
-				BC8283E316B4F8E200A278FE /* PluginService.32 */,
-				BC8283E916B4F8E200A278FE /* PluginService.64 */,
+				BC8283E916B4F8E200A278FE /* PluginService */,
 				BCBECDBF16B5CE0D00047A1A /* PluginService.Development */,
 				BC8283EF16B4F8E200A278FE /* PluginServiceEntryPoint.mm */,
 			);
@@ -4456,19 +4454,12 @@
 			path = mac/XPCService;
 			sourceTree = "<group>";
 		};
-		BC8283E316B4F8E200A278FE /* PluginService.32 */ = {
+		BC8283E916B4F8E200A278FE /* PluginService */ = {
 			isa = PBXGroup;
 			children = (
-				BC8283E416B4F8E200A278FE /* Info.plist */,
+				BCFCA89516DE96CB00074069 /* PluginService.32-64.Info.plist */,
 			);
-			path = PluginService.32;
-			sourceTree = "<group>";
-		};
-		BC8283E916B4F8E200A278FE /* PluginService.64 */ = {
-			isa = PBXGroup;
-			children = (
-				BC8283EA16B4F8E200A278FE /* Info.plist */,
-			);
+			name = PluginService;
 			path = PluginService.64;
 			sourceTree = "<group>";
 		};

Modified: trunk/Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/Info.plist (144216 => 144217)


--- trunk/Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/Info.plist	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/WebProcess/EntryPoint/mac/LegacyProcess/Info.plist	2013-02-27 19:40:54 UTC (rev 144217)
@@ -30,5 +30,7 @@
 	<string>NSApplication</string>
 	<key>WebKitEntryPoint</key>
 	<string>WebContentProcessMain</string>
+	<key>NSSupportsAutomaticGraphicsSwitching</key>
+	<true/>
 </dict>
 </plist>

Modified: trunk/Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist (144216 => 144217)


--- trunk/Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist	2013-02-27 19:40:54 UTC (rev 144217)
@@ -30,6 +30,8 @@
 	<string>WebContentServiceInitializer</string>
 	<key>LSUIElement</key>
 	<true/>
+	<key>NSSupportsAutomaticGraphicsSwitching</key>
+	<true/>
 	<key>XPCService</key>
 	<dict>
 		<key>ServiceType</key>

Modified: trunk/Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist (144216 => 144217)


--- trunk/Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist	2013-02-27 19:14:16 UTC (rev 144216)
+++ trunk/Source/WebKit2/WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist	2013-02-27 19:40:54 UTC (rev 144217)
@@ -30,6 +30,8 @@
 	<string>WebContentServiceInitializer</string>
 	<key>LSUIElement</key>
 	<true/>
+	<key>NSSupportsAutomaticGraphicsSwitching</key>
+	<true/>
 	<key>XPCService</key>
 	<dict>
 		<key>ServiceType</key>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to