| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 bool IsPinchVirtualViewportEnabled() { | 155 bool IsPinchVirtualViewportEnabled() { |
| 156 const base::CommandLine& command_line = | 156 const base::CommandLine& command_line = |
| 157 *base::CommandLine::ForCurrentProcess(); | 157 *base::CommandLine::ForCurrentProcess(); |
| 158 | 158 |
| 159 // Command line switches take precedence over platform default. | 159 // Command line switches take precedence over platform default. |
| 160 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport)) | 160 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport)) |
| 161 return false; | 161 return false; |
| 162 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) | 162 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) |
| 163 return true; | 163 return true; |
| 164 | 164 |
| 165 #if defined(OS_CHROMEOS) || defined(OS_WIN) | 165 #if defined(OS_CHROMEOS) |
| 166 return true; | 166 return true; |
| 167 #else | 167 #else |
| 168 return false; | 168 return false; |
| 169 #endif | 169 #endif |
| 170 } | 170 } |
| 171 | 171 |
| 172 bool IsDelegatedRendererEnabled() { | 172 bool IsDelegatedRendererEnabled() { |
| 173 const base::CommandLine& command_line = | 173 const base::CommandLine& command_line = |
| 174 *base::CommandLine::ForCurrentProcess(); | 174 *base::CommandLine::ForCurrentProcess(); |
| 175 bool enabled = false; | 175 bool enabled = false; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 return problem_list; | 321 return problem_list; |
| 322 } | 322 } |
| 323 | 323 |
| 324 base::Value* GetDriverBugWorkarounds() { | 324 base::Value* GetDriverBugWorkarounds() { |
| 325 base::ListValue* workaround_list = new base::ListValue(); | 325 base::ListValue* workaround_list = new base::ListValue(); |
| 326 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); | 326 GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(workaround_list); |
| 327 return workaround_list; | 327 return workaround_list; |
| 328 } | 328 } |
| 329 | 329 |
| 330 } // namespace content | 330 } // namespace content |
| OLD | NEW |