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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 // Command line switches take precedence over platform default. | 173 // Command line switches take precedence over platform default. |
174 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport)) | 174 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport)) |
175 return false; | 175 return false; |
176 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) | 176 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) |
177 return true; | 177 return true; |
178 | 178 |
179 return true; | 179 return true; |
180 } | 180 } |
181 | 181 |
| 182 bool IsPropertyTreeVerificationEnabled() { |
| 183 const base::CommandLine& command_line = |
| 184 *base::CommandLine::ForCurrentProcess(); |
| 185 return command_line.HasSwitch(cc::switches::kEnablePropertyTreeVerification); |
| 186 } |
| 187 |
182 bool IsDelegatedRendererEnabled() { | 188 bool IsDelegatedRendererEnabled() { |
183 const base::CommandLine& command_line = | 189 const base::CommandLine& command_line = |
184 *base::CommandLine::ForCurrentProcess(); | 190 *base::CommandLine::ForCurrentProcess(); |
185 bool enabled = false; | 191 bool enabled = false; |
186 | 192 |
187 #if defined(USE_AURA) || defined(OS_MACOSX) | 193 #if defined(USE_AURA) || defined(OS_MACOSX) |
188 // Enable on Aura and Mac. | 194 // Enable on Aura and Mac. |
189 enabled = true; | 195 enabled = true; |
190 #endif | 196 #endif |
191 | 197 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 } | 439 } |
434 } | 440 } |
435 return problem_list; | 441 return problem_list; |
436 } | 442 } |
437 | 443 |
438 std::vector<std::string> GetDriverBugWorkarounds() { | 444 std::vector<std::string> GetDriverBugWorkarounds() { |
439 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 445 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
440 } | 446 } |
441 | 447 |
442 } // namespace content | 448 } // namespace content |
OLD | NEW |