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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: fix test dcheck failures 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;
244 242
245 return false; 243 if (command_line.HasSwitch(switches::kDisableGpuScheduler))
244 return false;
245
246 return command_line.HasSwitch(switches::kEnableGpuScheduler);
246 } 247 }
247 248
248 bool IsForceGpuRasterizationEnabled() { 249 bool IsForceGpuRasterizationEnabled() {
249 const base::CommandLine& command_line = 250 const base::CommandLine& command_line =
250 *base::CommandLine::ForCurrentProcess(); 251 *base::CommandLine::ForCurrentProcess();
251 return command_line.HasSwitch(switches::kForceGpuRasterization); 252 return command_line.HasSwitch(switches::kForceGpuRasterization);
252 } 253 }
253 254
254 int GpuRasterizationMSAASampleCount() { 255 int GpuRasterizationMSAASampleCount() {
255 const base::CommandLine& command_line = 256 const base::CommandLine& command_line =
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 385 }
385 } 386 }
386 return problem_list; 387 return problem_list;
387 } 388 }
388 389
389 std::vector<std::string> GetDriverBugWorkarounds() { 390 std::vector<std::string> GetDriverBugWorkarounds() {
390 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 391 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
391 } 392 }
392 393
393 } // namespace content 394 } // 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