| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 197 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 198 | 198 |
| 199 if (command_line.HasSwitch(switches::kDisableImplSidePainting)) | 199 if (command_line.HasSwitch(switches::kDisableImplSidePainting)) |
| 200 return false; | 200 return false; |
| 201 else if (command_line.HasSwitch(switches::kEnableImplSidePainting)) | 201 else if (command_line.HasSwitch(switches::kEnableImplSidePainting)) |
| 202 return true; | 202 return true; |
| 203 else if (command_line.HasSwitch( | 203 else if (command_line.HasSwitch( |
| 204 switches::kEnableBleedingEdgeRenderingFastPaths)) | 204 switches::kEnableBleedingEdgeRenderingFastPaths)) |
| 205 return true; | 205 return true; |
| 206 | 206 |
| 207 #if defined(OS_MACOSX) | 207 #if defined(OS_MACOSX) || defined(OS_WIN) |
| 208 return false; | 208 return false; |
| 209 #else | 209 #else |
| 210 return true; | 210 return true; |
| 211 #endif | 211 #endif |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool IsGpuRasterizationEnabled() { | 214 bool IsGpuRasterizationEnabled() { |
| 215 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 215 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 216 | 216 |
| 217 if (!IsImplSidePaintingEnabled()) | 217 if (!IsImplSidePaintingEnabled()) |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 return problem_list; | 330 return problem_list; |
| 331 } | 331 } |
| 332 | 332 |
| 333 base::Value* GetDriverBugWorkarounds() { | 333 base::Value* GetDriverBugWorkarounds() { |
| 334 base::ListValue* workaround_list = new base::ListValue(); | 334 base::ListValue* workaround_list = new base::ListValue(); |
| 335 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); | 335 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); |
| 336 return workaround_list; | 336 return workaround_list; |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace content | 339 } // namespace content |
| OLD | NEW |