Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 11186039: Move CC switches to cc/switches.h. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Switch ui/compositor back to using compositorSupport() Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/DEPS ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 switches::kDisableGpuVsync, 778 switches::kDisableGpuVsync,
779 switches::kDisableJavaScriptI18NAPI, 779 switches::kDisableJavaScriptI18NAPI,
780 switches::kDisableLocalStorage, 780 switches::kDisableLocalStorage,
781 switches::kDisableLogging, 781 switches::kDisableLogging,
782 switches::kDisableSeccompFilterSandbox, 782 switches::kDisableSeccompFilterSandbox,
783 switches::kDisableSeccompSandbox, 783 switches::kDisableSeccompSandbox,
784 switches::kDisableSessionStorage, 784 switches::kDisableSessionStorage,
785 switches::kDisableSharedWorkers, 785 switches::kDisableSharedWorkers,
786 switches::kDisableSpeechInput, 786 switches::kDisableSpeechInput,
787 switches::kEnableScriptedSpeech, 787 switches::kEnableScriptedSpeech,
788 switches::kDisableThreadedAnimation,
789 #if defined(OS_ANDROID) 788 #if defined(OS_ANDROID)
790 switches::kEnableWebAudio, 789 switches::kEnableWebAudio,
791 #else 790 #else
792 switches::kDisableWebAudio, 791 switches::kDisableWebAudio,
793 #endif 792 #endif
794 switches::kEnableWebAudioInput, 793 switches::kEnableWebAudioInput,
795 switches::kDisableWebSockets, 794 switches::kDisableWebSockets,
796 switches::kDomAutomationController, 795 switches::kDomAutomationController,
797 switches::kEnableAccessibilityLogging, 796 switches::kEnableAccessibilityLogging,
798 switches::kEnableBrowserPluginForAllViewTypes, 797 switches::kEnableBrowserPluginForAllViewTypes,
799 switches::kEnableBrowserPluginOldImplementation, 798 switches::kEnableBrowserPluginOldImplementation,
800 switches::kEnableDCHECK, 799 switches::kEnableDCHECK,
801 switches::kEnableEncryptedMedia, 800 switches::kEnableEncryptedMedia,
802 switches::kEnableExperimentalWebKitFeatures, 801 switches::kEnableExperimentalWebKitFeatures,
803 switches::kEnableFixedLayout, 802 switches::kEnableFixedLayout,
804 switches::kEnableGPUServiceLogging, 803 switches::kEnableGPUServiceLogging,
805 switches::kEnableGPUClientLogging, 804 switches::kEnableGPUClientLogging,
806 switches::kEnableGpuBenchmarking, 805 switches::kEnableGpuBenchmarking,
807 switches::kEnableLogging, 806 switches::kEnableLogging,
808 switches::kDisableMediaSource, 807 switches::kDisableMediaSource,
809 switches::kDisableWebMediaPlayerMS, 808 switches::kDisableWebMediaPlayerMS,
810 switches::kEnablePartialSwap,
811 switches::kEnablePerTilePainting,
812 switches::kEnableRendererSideMixing, 809 switches::kEnableRendererSideMixing,
813 switches::kEnableStrictSiteIsolation, 810 switches::kEnableStrictSiteIsolation,
814 switches::kDisableFullScreen, 811 switches::kDisableFullScreen,
815 switches::kEnablePepperTesting, 812 switches::kEnablePepperTesting,
816 switches::kEnablePreparsedJsCaching, 813 switches::kEnablePreparsedJsCaching,
817 switches::kEnablePruneGpuCommandBuffers, 814 switches::kEnablePruneGpuCommandBuffers,
818 switches::kEnablePinch, 815 switches::kEnablePinch,
819 switches::kEnablePinchInCompositor,
820 #if defined(OS_MACOSX) 816 #if defined(OS_MACOSX)
821 // Allow this to be set when invoking the browser and relayed along. 817 // Allow this to be set when invoking the browser and relayed along.
822 switches::kEnableSandboxLogging, 818 switches::kEnableSandboxLogging,
823 #endif 819 #endif
824 switches::kEnableSeccompSandbox, 820 switches::kEnableSeccompSandbox,
825 switches::kEnableSoftwareCompositingGLAdapter, 821 switches::kEnableSoftwareCompositingGLAdapter,
826 switches::kEnableStatsTable, 822 switches::kEnableStatsTable,
827 switches::kEnableThreadedCompositing, 823 switches::kEnableThreadedCompositing,
828 switches::kDisableThreadedCompositing, 824 switches::kDisableThreadedCompositing,
829 switches::kEnableTouchEvents, 825 switches::kEnableTouchEvents,
(...skipping 27 matching lines...) Expand all
857 switches::kTraceStartup, 853 switches::kTraceStartup,
858 // This flag needs to be propagated to the renderer process for 854 // This flag needs to be propagated to the renderer process for
859 // --in-process-webgl. 855 // --in-process-webgl.
860 switches::kUseGL, 856 switches::kUseGL,
861 switches::kUseMobileUserAgent, 857 switches::kUseMobileUserAgent,
862 switches::kUserAgent, 858 switches::kUserAgent,
863 switches::kV, 859 switches::kV,
864 switches::kVideoThreads, 860 switches::kVideoThreads,
865 switches::kVModule, 861 switches::kVModule,
866 switches::kWebCoreLogChannels, 862 switches::kWebCoreLogChannels,
863 cc::switches::kBackgroundColorInsteadOfCheckerboard,
864 cc::switches::kDisableThreadedAnimation,
865 cc::switches::kEnablePartialSwap,
866 cc::switches::kEnablePerTilePainting,
867 cc::switches::kEnablePinchInCompositor,
867 cc::switches::kJankInsteadOfCheckerboard, 868 cc::switches::kJankInsteadOfCheckerboard,
868 cc::switches::kBackgroundColorInsteadOfCheckerboard,
869 }; 869 };
870 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 870 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
871 arraysize(kSwitchNames)); 871 arraysize(kSwitchNames));
872 872
873 // Disable databases in incognito mode. 873 // Disable databases in incognito mode.
874 if (GetBrowserContext()->IsOffTheRecord() && 874 if (GetBrowserContext()->IsOffTheRecord() &&
875 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 875 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
876 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 876 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
877 #if defined(OS_ANDROID) 877 #if defined(OS_ANDROID)
878 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging); 878 renderer_cmd->AppendSwitch(switches::kDisableMediaHistoryLogging);
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 const gfx::Size& size, 1586 const gfx::Size& size,
1587 int32 gpu_process_host_id) { 1587 int32 gpu_process_host_id) {
1588 TRACE_EVENT0("renderer_host", 1588 TRACE_EVENT0("renderer_host",
1589 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1589 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1590 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1590 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1591 gpu_process_host_id, 1591 gpu_process_host_id,
1592 0); 1592 0);
1593 } 1593 }
1594 1594
1595 } // namespace content 1595 } // namespace content
OLDNEW
« no previous file with comments | « content/DEPS ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698