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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); 247 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance();
248 return manager->IsFeatureEnabled(gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION); 248 return manager->IsFeatureEnabled(gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION);
249 } 249 }
250 250
251 bool IsAsyncWorkerContextEnabled() { 251 bool IsAsyncWorkerContextEnabled() {
252 const base::CommandLine& command_line = 252 const base::CommandLine& command_line =
253 *base::CommandLine::ForCurrentProcess(); 253 *base::CommandLine::ForCurrentProcess();
254 254
255 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext)) 255 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext))
256 return false; 256 return false;
257 else if (command_line.HasSwitch(switches::kEnableGpuAsyncWorkerContext))
258 return true;
259 257
260 return false; 258 if (command_line.HasSwitch(switches::kDisableGpuScheduler))
259 return false;
260
261 return command_line.HasSwitch(switches::kEnableGpuScheduler);
261 } 262 }
262 263
263 bool IsForceGpuRasterizationEnabled() { 264 bool IsForceGpuRasterizationEnabled() {
264 const base::CommandLine& command_line = 265 const base::CommandLine& command_line =
265 *base::CommandLine::ForCurrentProcess(); 266 *base::CommandLine::ForCurrentProcess();
266 return command_line.HasSwitch(switches::kForceGpuRasterization); 267 return command_line.HasSwitch(switches::kForceGpuRasterization);
267 } 268 }
268 269
269 int GpuRasterizationMSAASampleCount() { 270 int GpuRasterizationMSAASampleCount() {
270 const base::CommandLine& command_line = 271 const base::CommandLine& command_line =
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 } 400 }
400 } 401 }
401 return problem_list; 402 return problem_list;
402 } 403 }
403 404
404 std::vector<std::string> GetDriverBugWorkarounds() { 405 std::vector<std::string> GetDriverBugWorkarounds() {
405 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 406 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
406 } 407 }
407 408
408 } // namespace content 409 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698