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

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

Issue 433543002: Add a new ozone switch to enable surfaceless output mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: re-rebase Created 6 years, 4 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
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/base64.h" 7 #include "base/base64.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 switches::kVModule, 861 switches::kVModule,
862 #if defined(OS_MACOSX) 862 #if defined(OS_MACOSX)
863 switches::kEnableRemoteCoreAnimation, 863 switches::kEnableRemoteCoreAnimation,
864 switches::kEnableSandboxLogging, 864 switches::kEnableSandboxLogging,
865 #endif 865 #endif
866 #if defined(USE_AURA) 866 #if defined(USE_AURA)
867 switches::kUIPrioritizeInGpuProcess, 867 switches::kUIPrioritizeInGpuProcess,
868 #endif 868 #endif
869 #if defined(USE_OZONE) 869 #if defined(USE_OZONE)
870 switches::kOzonePlatform, 870 switches::kOzonePlatform,
871 switches::kOzoneUseSurfaceless,
871 #endif 872 #endif
872 #if defined(USE_X11) && !defined(OS_CHROMEOS) 873 #if defined(USE_X11) && !defined(OS_CHROMEOS)
873 switches::kX11Display, 874 switches::kX11Display,
874 #endif 875 #endif
875 }; 876 };
876 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, 877 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
877 arraysize(kSwitchNames)); 878 arraysize(kSwitchNames));
878 cmd_line->CopySwitchesFrom( 879 cmd_line->CopySwitchesFrom(
879 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); 880 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches);
880 cmd_line->CopySwitchesFrom( 881 cmd_line->CopySwitchesFrom(
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1047 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1047 ClientIdToShaderCacheMap::iterator iter = 1048 ClientIdToShaderCacheMap::iterator iter =
1048 client_id_to_shader_cache_.find(client_id); 1049 client_id_to_shader_cache_.find(client_id);
1049 // If the cache doesn't exist then this is an off the record profile. 1050 // If the cache doesn't exist then this is an off the record profile.
1050 if (iter == client_id_to_shader_cache_.end()) 1051 if (iter == client_id_to_shader_cache_.end())
1051 return; 1052 return;
1052 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1053 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1053 } 1054 }
1054 1055
1055 } // namespace content 1056 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | ui/ozone/platform/dri/gbm_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698