| 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 223 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 224 | 224 |
| 225 if (command_line.HasSwitch(switches::kDisableImplSidePainting)) | 225 if (command_line.HasSwitch(switches::kDisableImplSidePainting)) |
| 226 return false; | 226 return false; |
| 227 else if (command_line.HasSwitch(switches::kEnableImplSidePainting)) | 227 else if (command_line.HasSwitch(switches::kEnableImplSidePainting)) |
| 228 return true; | 228 return true; |
| 229 else if (command_line.HasSwitch( | 229 else if (command_line.HasSwitch( |
| 230 switches::kEnableBleedingEdgeRenderingFastPaths)) | 230 switches::kEnableBleedingEdgeRenderingFastPaths)) |
| 231 return true; | 231 return true; |
| 232 | 232 |
| 233 #if defined(OS_MACOSX) | 233 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 234 return false; | 234 return false; |
| 235 #else | 235 #else |
| 236 return IsThreadedCompositingEnabled(); | 236 return IsThreadedCompositingEnabled(); |
| 237 #endif | 237 #endif |
| 238 } | 238 } |
| 239 | 239 |
| 240 bool IsGpuRasterizationEnabled() { | 240 bool IsGpuRasterizationEnabled() { |
| 241 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 241 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 242 | 242 |
| 243 if (!IsImplSidePaintingEnabled()) | 243 if (!IsImplSidePaintingEnabled()) |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 return problem_list; | 360 return problem_list; |
| 361 } | 361 } |
| 362 | 362 |
| 363 base::Value* GetDriverBugWorkarounds() { | 363 base::Value* GetDriverBugWorkarounds() { |
| 364 base::ListValue* workaround_list = new base::ListValue(); | 364 base::ListValue* workaround_list = new base::ListValue(); |
| 365 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); | 365 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); |
| 366 return workaround_list; | 366 return workaround_list; |
| 367 } | 367 } |
| 368 | 368 |
| 369 } // namespace content | 369 } // namespace content |
| OLD | NEW |