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

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

Issue 2881813002: Revert of gpu: GPU service scheduler. (Closed)
Patch Set: Created 3 years, 7 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/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); 232 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance();
233 return manager->IsFeatureEnabled(gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION); 233 return manager->IsFeatureEnabled(gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION);
234 } 234 }
235 235
236 bool IsAsyncWorkerContextEnabled() { 236 bool IsAsyncWorkerContextEnabled() {
237 const base::CommandLine& command_line = 237 const base::CommandLine& command_line =
238 *base::CommandLine::ForCurrentProcess(); 238 *base::CommandLine::ForCurrentProcess();
239 239
240 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext)) 240 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext))
241 return false; 241 return false;
242 else if (command_line.HasSwitch(switches::kEnableGpuAsyncWorkerContext))
243 return true;
242 244
243 if (command_line.HasSwitch(switches::kDisableGpuScheduler)) 245 return false;
244 return false;
245
246 return command_line.HasSwitch(switches::kEnableGpuScheduler);
247 } 246 }
248 247
249 bool IsForceGpuRasterizationEnabled() { 248 bool IsForceGpuRasterizationEnabled() {
250 const base::CommandLine& command_line = 249 const base::CommandLine& command_line =
251 *base::CommandLine::ForCurrentProcess(); 250 *base::CommandLine::ForCurrentProcess();
252 return command_line.HasSwitch(switches::kForceGpuRasterization); 251 return command_line.HasSwitch(switches::kForceGpuRasterization);
253 } 252 }
254 253
255 int GpuRasterizationMSAASampleCount() { 254 int GpuRasterizationMSAASampleCount() {
256 const base::CommandLine& command_line = 255 const base::CommandLine& command_line =
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } 384 }
386 } 385 }
387 return problem_list; 386 return problem_list;
388 } 387 }
389 388
390 std::vector<std::string> GetDriverBugWorkarounds() { 389 std::vector<std::string> GetDriverBugWorkarounds() {
391 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 390 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
392 } 391 }
393 392
394 } // namespace content 393 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/gpu/gpu_ipc_browsertests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698