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