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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | Annotate | Revision Log
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 #include "content/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 switches::kEnableSandboxLogging, 745 switches::kEnableSandboxLogging,
746 #endif 746 #endif
747 switches::kGpuNoContextLost, 747 switches::kGpuNoContextLost,
748 switches::kGpuStartupDialog, 748 switches::kGpuStartupDialog,
749 switches::kLoggingLevel, 749 switches::kLoggingLevel,
750 switches::kNoSandbox, 750 switches::kNoSandbox,
751 switches::kTestGLLib, 751 switches::kTestGLLib,
752 switches::kTraceStartup, 752 switches::kTraceStartup,
753 switches::kV, 753 switches::kV,
754 switches::kVModule, 754 switches::kVModule,
755 switches::kEnableUIReleaseFrontSurface,
755 #if defined(USE_AURA) 756 #if defined(USE_AURA)
756 switches::kUIPrioritizeInGpuProcess, 757 switches::kUIPrioritizeInGpuProcess,
757 #endif 758 #endif
758 }; 759 };
759 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 760 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
760 arraysize(kSwitchNames)); 761 arraysize(kSwitchNames));
761 cmd_line->CopySwitchesFrom( 762 cmd_line->CopySwitchesFrom(
762 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); 763 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches);
763 764
764 content::GetContentClient()->browser()->AppendExtraCommandLineSwitches( 765 content::GetContentClient()->browser()->AppendExtraCommandLineSwitches(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 const IPC::ChannelHandle& channel_handle, 809 const IPC::ChannelHandle& channel_handle,
809 base::ProcessHandle renderer_process_for_gpu, 810 base::ProcessHandle renderer_process_for_gpu,
810 const content::GPUInfo& gpu_info) { 811 const content::GPUInfo& gpu_info) {
811 callback.Run(channel_handle, gpu_info); 812 callback.Run(channel_handle, gpu_info);
812 } 813 }
813 814
814 void GpuProcessHost::CreateCommandBufferError( 815 void GpuProcessHost::CreateCommandBufferError(
815 const CreateCommandBufferCallback& callback, int32 route_id) { 816 const CreateCommandBufferCallback& callback, int32 route_id) {
816 callback.Run(route_id); 817 callback.Run(route_id);
817 } 818 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698