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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 *base::CommandLine::ForCurrentProcess(); | 308 *base::CommandLine::ForCurrentProcess(); |
309 | 309 |
310 if (command_line.HasSwitch(switches::kDisableThreadedGpuRasterization)) | 310 if (command_line.HasSwitch(switches::kDisableThreadedGpuRasterization)) |
311 return false; | 311 return false; |
312 | 312 |
313 return true; | 313 return true; |
314 } | 314 } |
315 | 315 |
316 bool UseSurfacesEnabled() { | 316 bool UseSurfacesEnabled() { |
317 #if defined(OS_ANDROID) | 317 #if defined(OS_ANDROID) |
318 return false; | 318 return true; |
319 #endif | 319 #endif |
320 bool enabled = false; | 320 bool enabled = false; |
321 #if (defined(USE_AURA) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) | 321 #if (defined(USE_AURA) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) |
322 enabled = true; | 322 enabled = true; |
323 #endif | 323 #endif |
324 | 324 |
325 const base::CommandLine& command_line = | 325 const base::CommandLine& command_line = |
326 *base::CommandLine::ForCurrentProcess(); | 326 *base::CommandLine::ForCurrentProcess(); |
327 | 327 |
328 // Flags override. | 328 // Flags override. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } | 446 } |
447 } | 447 } |
448 return problem_list; | 448 return problem_list; |
449 } | 449 } |
450 | 450 |
451 std::vector<std::string> GetDriverBugWorkarounds() { | 451 std::vector<std::string> GetDriverBugWorkarounds() { |
452 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 452 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
453 } | 453 } |
454 | 454 |
455 } // namespace content | 455 } // namespace content |
OLD | NEW |