Commit e7eaa2b8 authored by bajones@chromium.org's avatar bajones@chromium.org

Removed webgl-command-buffer-size-kb flag

Removal request as part of chrome-wide flag cleanup. See: https://docs.google.com/a/chromium.org/spreadsheet/ccc?key=0ArH-w4dboLrgdGRqNU5FUm1Za2VieTFHOE91MW9hUVE&usp=sharing#gid=0

BUG=315429

Review URL: https://codereview.chromium.org/291013002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271565 0039d316-1c4b-4281-b951-d872f2087c98
parent 515859f5
...@@ -154,7 +154,6 @@ std::string DeriveCommandLine(const GURL& start_url, ...@@ -154,7 +154,6 @@ std::string DeriveCommandLine(const GURL& start_url,
::switches::kUserDataDir, ::switches::kUserDataDir,
::switches::kV, ::switches::kV,
::switches::kVModule, ::switches::kVModule,
::switches::kWebGLCommandBufferSizeKb,
::switches::kEnableWebGLDraftExtensions, ::switches::kEnableWebGLDraftExtensions,
#if defined(ENABLE_WEBRTC) #if defined(ENABLE_WEBRTC)
::switches::kDisableWebRtcHWDecoding, ::switches::kDisableWebRtcHWDecoding,
......
...@@ -1140,7 +1140,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( ...@@ -1140,7 +1140,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kV, switches::kV,
switches::kVideoThreads, switches::kVideoThreads,
switches::kVModule, switches::kVModule,
switches::kWebGLCommandBufferSizeKb,
// Please keep these in alphabetical order. Compositor switches here should // Please keep these in alphabetical order. Compositor switches here should
// also be added to chrome/browser/chromeos/login/chrome_restart_request.cc. // also be added to chrome/browser/chromeos/login/chrome_restart_request.cc.
cc::switches::kCompositeToMailbox, cc::switches::kCompositeToMailbox,
......
...@@ -917,9 +917,6 @@ const char kValidateInputEventStream[] = "validate-input-event-stream"; ...@@ -917,9 +917,6 @@ const char kValidateInputEventStream[] = "validate-input-event-stream";
// kWaitForDebugger flag passed on or not. // kWaitForDebugger flag passed on or not.
const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; const char kWaitForDebuggerChildren[] = "wait-for-debugger-children";
// Overrides the amount of shared memory the webgl command buffer allocates
const char kWebGLCommandBufferSizeKb[] = "webgl-command-buffer-size-kb";
// Causes the process to run as a worker subprocess. // Causes the process to run as a worker subprocess.
const char kWorkerProcess[] = "worker"; const char kWorkerProcess[] = "worker";
......
...@@ -257,7 +257,6 @@ CONTENT_EXPORT extern const char kUtilityProcessEnableMDns[]; ...@@ -257,7 +257,6 @@ CONTENT_EXPORT extern const char kUtilityProcessEnableMDns[];
CONTENT_EXPORT extern const char kUtilityProcessRunningElevated[]; CONTENT_EXPORT extern const char kUtilityProcessRunningElevated[];
CONTENT_EXPORT extern const char kValidateInputEventStream[]; CONTENT_EXPORT extern const char kValidateInputEventStream[];
CONTENT_EXPORT extern const char kWaitForDebuggerChildren[]; CONTENT_EXPORT extern const char kWaitForDebuggerChildren[];
CONTENT_EXPORT extern const char kWebGLCommandBufferSizeKb[];
CONTENT_EXPORT extern const char kWorkerProcess[]; CONTENT_EXPORT extern const char kWorkerProcess[];
CONTENT_EXPORT extern const char kZygoteCmdPrefix[]; CONTENT_EXPORT extern const char kZygoteCmdPrefix[];
CONTENT_EXPORT extern const char kZygoteProcess[]; CONTENT_EXPORT extern const char kZygoteProcess[];
......
...@@ -1015,16 +1015,6 @@ RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D( ...@@ -1015,16 +1015,6 @@ RendererWebKitPlatformSupportImpl::createOffscreenGraphicsContext3D(
CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)); CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE));
WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits limits; WebGraphicsContext3DCommandBufferImpl::SharedMemoryLimits limits;
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kWebGLCommandBufferSizeKb)) {
std::string size_string = command_line->GetSwitchValueASCII(
switches::kWebGLCommandBufferSizeKb);
size_t buffer_size_kb;
if (base::StringToSizeT(size_string, &buffer_size_kb)) {
limits.command_buffer_size = buffer_size_kb * 1024;
}
}
bool lose_context_when_out_of_memory = false; bool lose_context_when_out_of_memory = false;
return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
gpu_channel_host.get(), gpu_channel_host.get(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment