OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |